Kbase P87922: What is XML parsing?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  13/07/2004 |
|
Status: Unverified
GOAL:
What is XML parsing?
FIX:
XML parsing is defined to be the processing that occurs when a process sequentially reads the contents of a document and interprets the metadata and the data in the document. In our example, ?<to>? is an element of the document which is considered metadata. The value of the element is the string ?Joseph Anderson.? The value of the element is the data in the document.
Two types of XML parsing:
There are two categories of parsers that are used by XML applications:
Tree-based:
Creates an internal tree of all of the data in the XML document; this tree is called a Document Object Model (DOM).
Event-based:
Generates events based on the parsing of part or all of the document; the application uses the Simple API for XML (SAX)for generating events during the parsing of the XML document.