Download Latest Version xdef-beginner.jar (1.7 MB)
Email in envelope

Get an email when there's a new version of x-definition-beginner-xml

Home / sample
Name Modified Size InfoDownloads / Week
Parent folder
BNBBasic_202105_f59.rdf.zip 2021-06-21 19.1 MB
abstracts.xsl 2021-06-21 1.4 kB
SouthAfricaHouses 2021-06-10 268.6 kB
BLICBasicB_202105_f97.rdf.zip 2021-06-10 761.9 kB
SouthAfricaISBN 2021-06-10 42.8 kB
BLICBasicB_202102_f50.rdf.zip 2021-06-10 1.5 MB
AustraliaHouses 2021-06-10 678.7 kB
AustraliaISBN 2021-06-10 157.8 kB
discogs.xml 2021-04-04 207.7 kB
dnb.xml 2021-04-04 237.7 kB
Totals: 10 Items   22.9 MB 0
The file xdef-beginner.jar is practically identical to xdef-40.1.3.jar, which resides at www.xdefinice.cz. The only differences are as follows.

1. The jar file has a main class (xdef.java: the source is in xdef-beginner.jar's root directory), the purpose of which is to enable persons who don't wish to write or compile Java code to use X-definition.

2. When xdef-beginner.jar's main class is run (java -jar xdef-beginner.jar .xdef .xml), a different class to the X-definition API's org.xdef.sys.NullReportWriter takes its place. It is org.xdef.sys.NewNullReportWriter, "created" by literally duplicating NullReportWriter.java, renaming the class and its constructor to NewNullReportWriter, and, finally, commenting out three lines of code in a method, putReport, that had been declared final in the original code. Hacking org.xdef.sys.NullReportWriter in this manner makes it feasible to run X-definition as a means of filtering the data that very large XML documents contain, as opposed to validating it as one does when deploying a schema. The upshot is that xdef-beginner.jar contains one additional source file, and one additional .class file.

3. Copies of the relevant licenses (Apache Version 2.0) and copyright statements are included in xdef-beginner.jar, where the original download from www.xdefinice.cz put them in the directory of the .zip archive that contains xdef-40.1.3.jar.

Even though xdef-beginner.jar can be used to run any and all code that uses the X-definition API (xdef-40.1.3.jar doesn't have a main class, although it includes classes from Syntea Software Group that do have a main() method and that run when xdef-40.1.3.jar is put in one's classpath), it's wise to download the proper distribution at the www.xdefinice.cz website. The .zip archive contains several hundred pages of valuable user documentation in pdf format, as well as the API javadoc, all of the source code, and examples. 
Source: README, updated 2021-04-04