XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> TREX, Schema Software, Java Applications -> Sample Implementation of TREX in Java

Sample Implementation of TREX in Java

Date: Feb. 14, 2001
Link: http://www.thaiopensource.com/trex/jtrex.html
Source Author or Organization: James Clark

This page offers a sample Java implementation of the Tree Regular Expressions for XML (TREX) schema language for validating XML documents (http://www.xml.com/pub/r/913), with links to the downloadable sample as a JAR file, as a Win32 executable for use with the Microsoft Java Virtual Machine (VM), and as source code.

Datatyping using a real implementation of XML Schema Part 2: Datatypes is now supported, and +use xsd:list, xsd:union and xsd:restriction can be used to derive new datatypes within a TREX pattern (parts of trex:role="datatype" not implemented are discussed at http://www.thaiopensource.com/trex/jdatatypes.html). Additionally a TREX task is provided that allows TREX to be used from within the Ant Java based build tool (http://www.thaiopensource.com/trex/trex-ant.html). A Java based XML parser that implements Simple Application Programming Interface for XML (SAX) or SAX 2.0 (SAX2) is required.