Skip to main content

XML Parsing, SAX/DOM

  • Reference work entry
  • First Online:
  • 33 Accesses

Definition

XML parsing is the process of reading an XML document and providing an interface to a user application for accessing the document. An XML parser is a software apparatus that accomplishes such tasks. In addition, most XML parsers check the well-formedness of the XML document and many can also validate the document with respect to a DTD (Document Type Definition) or XML schema. Through the parsing interface, the user application can focus on application logic itself, without dwelling on the details of XML.

There are mainly two categories of XML programming interfaces – DOM (Document Object Model) and SAX (Simple API for XML). DOM is a tree-based interface that models an XML document as a tree of nodes, via which an application can search for nodes, read their information, and update the contents of the nodes. SAX is an event-driven interface. The application registers with the parser various event handlers. As the parser reads an XML document, it generates events for the...

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD   6,499.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Recommended Reading

  1. Chiu K, Govindaraju M, Bramley R. Investigating the limits of SOAP performance for scientific computing. In: Proceedings of the 11th IEEE International Symposium on High Performance Distributed Computing; 2002. p. 246–54.

    Google Scholar 

  2. Document Type Declaration, http://www.w3.org/TR/REC-xml/#dt-doctype

  3. Farfán F, Hristidis V, Rangaswami R. Beyond lazy XML parsing. In: Proceedings of the 18th International Conference on Database and Expert Systems Applications; 2007. p. 75–86.

    Google Scholar 

  4. Harold ER. Processing XML with Java(TM): a guide to SAX, DOM, JDOM, JAXP, and TrAX. Addison-Wesley; 2002.

    Google Scholar 

  5. Kostoulas M, Matsa M, Mendelsohn N, Perkins E, Heifets A, Mercaldi M. XML screamer: an integrated approach to high performance XML parsing, validation and deserialization. In: Proceedings of the 15th International World Wide Web Conference; 2006. p. 93–102.

    Google Scholar 

  6. Nicola M, John J. XML parsing: a threat to database performance. In: Proceedings of the International Conference on Information and knowledge Management; 2003. p. 175–8.

    Google Scholar 

  7. Noga M, Schott S, Löwe W. Lazy XML processing. In: Proceedings of the 2nd ACM Symposium on Document Engineering; 2002. p. 88–94.

    Google Scholar 

  8. Takase T, Miyashita H, Suzumura T, Tatsubori M. An adaptive, fast, and safe XML parser based on byte sequences memorization. In: Proceedings of the 14th International World Wide Web Conference; 2005. p. 692–701.

    Google Scholar 

  9. Thompson H, Tobin R. Using finite state automata to implement W3C XML schema content model validation and restriction checking. In: Proceedings of the XML Europe; 2003. p. 246–54.

    Google Scholar 

  10. Van Engelen R. Constructing finite state automata for high performance XML web services. In: Proceedings of the International Symposium on Web Services; 2004. p. 975–81.

    Google Scholar 

  11. XML Schema (W3C), http://www.w3.org/XML/Schema

  12. Zhang W, Van Engelen R. A table-driven streaming XML parsing methodology for high-performance web services. In: Proceedings of the IEEE International Conferences on Web Services; 2006. p. 197–204.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chengkai Li .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Science+Business Media, LLC, part of Springer Nature

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Li, C. (2018). XML Parsing, SAX/DOM. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_769

Download citation

Publish with us

Policies and ethics