Always try to use only the standard XML APIs when writing
XML applications. This will keep your application shielded
from changes in the underlying implementation of those
standard APIs and also gives you more flexibility to change
the implementation of the standard pieces without modifying
your application code.
If you need functionality that is not available in the
standard APIs like DOM and SAX, then perhaps using the Xerces
Native Interface (XNI) will provide the information to build
the appropriate parsing tools for your application. For more
detailed information regarding XNI, refer to the
Xerces-J's XML Schema 1.1 API documentation, would have some differences as compared to
API documentation of XML Schema 1.0 implementation. To view the API documentation of
Xerces-J's XML Schema 1.1 implementation, the reader would have to view 'docs' folder within our
XML Schema 1.1 download package.