Monday, March 19, 2012

XML Info

SAX Parser:
  1. Event based model.
  2. Serial access (flow of events).
  3. Low memory usage (only events are generated).
  4. To process parts of the document (catching relevant events).
  5. To process the document only once.
  6. Backward navigation is not possible as it sequentially processes the document.
  7. Objects are to be created.
DOM Parser:
  1. (Object based)Tree data structure.
  2. Random access (in-memory data structure).
  3. High memory usage (the document is loaded into memory).
  4. To edit the document (processing the in-memory data structure).
  5. To process multiple times (document loaded in memory).
  6. Ease of navigation.
  7. Stored as objects.
XPath :
  • 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