1.

What are the key components/interfaces of DOM Parsing?

Answer»

The DOM defines several Java interfaces. Here are the most common interfaces −

  • Node - The base datatype of the DOM.

  • Element - The vast majority of the objects you'll deal with are Elements.

  • Attr Represents an attribute of an element.

  • Text The actual content of an Element or Attr.

  • Document Represents the entire XML document. A Document object is often referred to as a DOM tree.



Discussion

No Comment Found