Overview

XML processing means parsing an XML document to extract data from the document.

Applications can use programs called XML parsers to process XML documents. XML parsers extract data for applications and enable the applications to apply business logic to the data. For example, an application receives an XML document, which contains details about an organization's employees. The application can use an XML parser to extract the salary of each employee and use business logic to calculate the average salary of the employees. Parsers provide application program interfaces (APIs) that contain specifications and tools for XML processing. The common APIs for XML processing are:

  • Document Object Model (DOM)
  • Simple API for XML (SAX)
  • JavaTM API for XML Processing (JAXP)
  • JavaTM Architecture for XML Binding (JAXB)

Objectives

Upon completion of this module, you should be able to:

  • Describe DOM
  • Describe SAX
  • Describe JAXP
  • Describe JAXB
The graphic shows the common APIs for XML processing.
Click the Next button to continue.