Multiple choice technology web technology

Among the following which is the tree based XML parsing

  1. SAX

  2. DOM

  3. JAXP

  4. JAXB

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

DOM (Document Object Model) is tree-based - it parses the entire XML document and builds an in-memory tree structure representing the document hierarchy. SAX is event-based and streams through the document sequentially.