1.

Name some of the important JDOM classes.

Answer»

The JDOM defines several Java classes. Here are the most common classes −

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

  • Element - Represents an XML element. Element object has methods to manipulate its child elements,its text, attributes and namespaces.

  • Attribute Represents an attribute of an element. Attribute has method to get and set the value of attribute. It has parent and attribute type.

  • Text Represents the text of XML tag.

  • Comment Represents the comments in a XML document.



Discussion

No Comment Found