Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is SAX?

SAX
0
Posted

What is SAX?

0

SAX is Simple API for XML. SAX APIs designed to allow programmers to access their information without having to write a parser in their programming language of choice. These APIs are available in all languages (java. C++.etc). The Textual information in your XML document doesnt get turned into a bunch of Tree nodes, but as a sequence of Events. SAX is faster then DOM. SAX doesnt provide object model for you, therefore here we have to create our own custom object model and write a Event handler class that listens to SAX Events and does element to object mapping. It can fire events for every open and close tag, for #PCDATA and CDATA sections and also fires events for DTDs, comments and Instructions.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.