Various types of the XML API

Briefly explain various types of the XML Application Programming Interface (API).

E

Expert

Verified

Two main types of XML parsers are as follows:

1. Event-based API – It provides report to the application about parsing events by the set of built-in callback functions. The example of an event-based API is SAX.

2. Tree-based API – It compiles the XML document into the tree structure and loads it into the memory. We can traverse and modify tree structure. DOM is the example of the tree-based API.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.