Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
56 views1 page

XML Parser Types

Uploaded by

Sanika Deshmukh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views1 page

XML Parser Types

Uploaded by

Sanika Deshmukh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

XML Parser and Its Types

Definition of XML Parser:

- A parser in XML is software that is responsible for reading and processing XML documents.

- Its main purpose is to validate the structure of the document.

- It also extracts data from the document in a way that can be easily processed by other software

applications.

Types of XML Parsers:

- There are two types of XML parsers: SAX and DOM.

- A SAX (Simple API for XML) parser reads an XML document sequentially and generates events,

which are notifications of the parser's progress through the document.

- This type of parser is generally faster and uses less memory than a DOM parser.

- However, it is less convenient for random access to the document's content.

- A DOM (Document Object Model) parser loads the entire XML document into memory and creates

a tree-like structure that represents the document's elements and their relationships.

- This type of parser is slower and uses more memory than a SAX parser but provides random

access to the document's content.

You might also like