cancel
Showing results for 
Search instead for 
Did you mean: 

SAX parser

Former Member
0 Kudos

What are the various type of files we can parse with SAX parser and give output using SAX parser?

Accepted Solutions (1)

Accepted Solutions (1)

prabhu_s2
Active Contributor
0 Kudos

XML files only as the name implies...AFAIK

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sankar

SAX (Simple API for XML) it is probably the most complete and accurate method so far.

This is used for XML documents.The SAX classes provide an interface between the input streams from which XML documents are read and the client software which receives the data made available by the parser. The parser browses through the whole document and fires events every time it recognizes an XML construct (e.g. it recognizes a start tag and fires an event – the client software is notified and can use this information… or not).

If you recall that the XML structure is a set of nodes of various types (like an element node) – parsing the document with a SAX parser means going through each node one at a time. This makes it possible to read even very large XML documents in a memory-efficient way

For more details on SAX parser and also to have a look on examples you can follow this link.

Hope it will solve your problem

http://en.wikibooks.org/wiki/XML_-_Managing_Data_Exchange/Parsing_XML_files

Thanks

Sandeep Sharma

PS: if helpful reward points

Former Member
0 Kudos
Former Member
0 Kudos

XML Files

Former Member
0 Kudos

Hi,

every file that has a XML structure (means also: XSLT, XSD an so on)

Regards Mario