The advantages of XJ over existing mechanisms for XML development are:
- Familiarity (for the XML Programmer) : XML processing in XJ is consistent with open XML standards.
- Robustness : XJ programs are strongly typed with respect to XML Schemas. The XJ compiler can detect errors in uses of XPath expressions and construction of XML data.
- Easier Maintenance: Since XJ programs are written in terms of XML and not low-level APIs such as DOM or SAX, they are easier to maintain and modify if XML Schemas change.
- Performance: Since the compiler is aware of the use of XML in a program, it can optimize the runtime representation, parsing, and XPath evaluation of XML.
In XJ, one can import XML schemas just as one does Java classes. All the element declarations in the XML schema are then available to programmers as if they were Java classes. Programmers can write inline XPath expressions on these classes, and the compiler checks them for correctness with respect to the XML schema.
I'd love to hear about your experiences using the XJ technology. You can write your experiences using the XJ technology on the ETTK Wiki pages at http://awlinux1.alphaworks.ibm.com/wiki/display/ettk/ETTK .
John Feller[Read More]