Java programmers working with API's like the XML DOM or with schema-to-object mapping tools often wish there was a better way. We even see convenient support for XML being added to ECMAScript (E4X) and PHP (SimpleXML). Finally, there is a Java alternative. Check out XML Enhancements for Java (XJ), just released on IBM alphaWorks. It extends Java by supporting XML, XML Schema and XPath in a convenient, natural way. It allows you import an XML schema file as you would a package or class and process the XML document like a Java object, without requiring any external schema mapping.
This topic is extremely important to the Java community and feedback on this technology would be very valuable. I think we need to know if developers see this model as the right one for Java and what further requirements the Java XML community thinks should be addressed. The technique for including XPath expressions in Java statements is something in particular for which feedback would be useful. Syntax can be changed.
Maybe most importantly, I would like to see you post comments to this entry with descriptions of the types of applications you built with this technology. If you had to interact with existing classes that are based on DOM
or JDOM, did you have any problems?
Let's try this out and discuss the future of XML processing in Java. I think XJ is a good place to start the discussion.