1.

What Are The Key Components/interfaces Of Dom Parsing?name Some Of The Important Dom Parsing Methods.?

Answer»

When you are WORKING with the DOM, there are several methods you'll use often:

  • DOCUMENT.getDocumentElement() - RETURNS the root element of the document.
  • Node.getFirstChild() - Returns the first child of a given Node.
  • Node.getLastChild() - Returns the last child of a given Node.
  • Node.getNextSibling() - These methods return the next SIBLING of a given Node.
  • Node.getPreviousSibling() - These methods return the previous sibling of a given Node.
  • Node.getAttribute(attrName) - For a given Node, returns the attribute with the requested name.

When you are working with the DOM, there are several methods you'll use often:



Discussion

No Comment Found