1.

Name some of the important JDOM methods.

Answer»

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

  • SAXBuilder.build(xmlSource) - Build the JDOM document from the xml source.

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

  • Element.getName() - Get the name of the XML node.

  • Element.getChildren() - Get all the direct child nodes of an element.

  • Node.getChildren(Name) - Get all the direct child nodes with a given name.

  • Node.getChild(Name) - Get first child node with given name.



Discussion

No Comment Found