Multiple choice technology web technology

The SAX parser creates a node by using

  1. createElement()

  2. reateTextNode()(

  3. createComment()

  4. None of the above

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

The SAX parser is event-based and does not create node objects at all. Methods like createElement(), createTextNode(), and createComment() are DOM API methods. SAX fires events (startElement, characters, endElement) but doesn't build a node tree.