 |
 |
 |
XML Enhancements for Java (XJ) (http://www.alphaworks.ibm.com/tech/xj) are
a set of extensions to Java 1.4 that integrate support for XML, XML Schema
and XPath 1.0 into the language. 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. In addition, the compiler performs
optimizations in order to improve the evaluation of XPath expressions. A
programmer may construct new XML documents by writing XML directly inline.
Again, the compiler ensures correctness with respect to the appropriate
schema. By integrating XML and Java, XJ allows programmers to reuse
existing Java libraries in the development of XML code and vice-versa.
XJ is an evolving language, and therefore any comments, criticisms or
praise from developers is most welcome.
Igor Pechtchanski (for the XJ team)
--
Igor Pechtchanski
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj)
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |