1.

Name some of the important DOM4J methods.

Answer»

When you are working with the DOM4J, there are several methods you'll use often −

  • SAXReader.read(xmlSource)() - Build the DOM4J document from the xml source.

  • Document.getRootElement() - Get the root element of the XML.

  • Element.node(index) - Get the XML node at particular index in the element.

  • Element.attributes() - Get all the attributes of an element.

  • Node.valueOf(Name) - Get the value of an attribute with given name of the element.



Discussion

No Comment Found