SAX Parser:
- Event based model.
- Serial access (flow of events).
- Low memory usage (only events are generated).
- To process parts of the document (catching relevant events).
- To process the document only once.
- Backward navigation is not possible as it sequentially processes the document.
- Objects are to be created.
- (Object based)Tree data structure.
- Random access (in-memory data structure).
- High memory usage (the document is loaded into memory).
- To edit the document (processing the in-memory data structure).
- To process multiple times (document loaded in memory).
- Ease of navigation.
- Stored as objects.
- XPath is used to navigate through elements and attributes in an XML document.
- Used in XSLT.
- XPath uses path expressions to select nodes or node-sets in an XML document.
No comments:
Post a Comment