Java API for XML Processing: Difference between revisions

Content deleted Content added
SAE1962 (talk | contribs)
m Improved code formatting
SAE1962 (talk | contribs)
StAX interface explained using the StAX article.
Line 30:
 
During parsing, the parser may need to access external documents. It is possible to store a local cache for frequently-used documents using an [[XML Catalog]].
 
== StAX interface ==
StAX was designed as a median between the DOM and SAX interface. In its metaphor, the programmatic entry point is a cursor that represents a point within the document. The application moves the cursor forward - 'pulling' the information from the parser as it needs. This is different from an event based API - such as SAX - which 'pushes' data to the application - requiring the application to maintain state between events as necessary to keep track of ___location within the document.
 
== XSLT interface ==