Uses of Class
nu.xom.Element

Packages that use Element
nu.xom nu.xom is the core package of XOM that contains all the basic classes representing the different kinds of nodes: elements, attributes, comments, text nodes, and so forth. 
nu.xom.converters nu.xom.converters contains classes that convert XOM documents to other models such as SAX and DOM. 
nu.xom.tests nu.xom.tests contains the JUnit based test suite for XOM. 
 

Uses of Element in nu.xom
 

Methods in nu.xom that return Element
 Element Elements.get(int index)
           Returns the indexth element in the list.
 Element Document.getRootElement()
           Returns this document's root element.
 Element Element.getFirstChildElement(java.lang.String name)
           Returns the first child element with the specified name in no namespace.
 Element Element.getFirstChildElement(java.lang.String localName, java.lang.String namespaceURI)
           Returns the first child element with the specified local name and namespace URI.
 Element NodeFactory.makeRootElement(java.lang.String name, java.lang.String namespace)
           Creates a new Element in the specified namespace with the specified name.
 Element NodeFactory.startMakingElement(java.lang.String name, java.lang.String namespace)
           Creates a new Element in the specified namespace with the specified name.
 

Methods in nu.xom with parameters of type Element
protected  void Serializer.write(Element element)
           Serializes an element onto the output stream using the current options.
protected  void Serializer.writeEndTag(Element element)
           This method writes the end-tag for an element in the form </name.
protected  void Serializer.writeStartTag(Element element)
           This method writes the start-tag for the element including all its namespace declarations and attributes.
protected  void Serializer.writeEmptyElementTag(Element element)
           This method writes an empty-element tag for the element including all its namespace declarations and attributes.
protected  void Serializer.writeAttributes(Element element)
           This method writes all the attributes of the specified element onto the output stream, one at a time, separated by white space.
protected  void Serializer.writeNamespaceDeclarations(Element element)
           This method writes all the namespace declaration attributes of the specified element onto the output stream, one at a time, separated by white space.
 void Document.setRootElement(Element root)
           Replaces the current root element with a different root element.
protected  void Document.checkRoot(Element root)
           Subclasses can override this method to perform additional checks on the root element beyond what XML 1.0 requires.
 Nodes NodeFactory.finishMakingElement(Element element)
           The Builder calls this method to signal the end of an element.
 

Constructors in nu.xom with parameters of type Element
Document(Element root)
           Creates a new Document object with the specified root element.
Element(Element element)
           Creates a deep copy of an element.
 

Uses of Element in nu.xom.converters
 

Methods in nu.xom.converters that return Element
static Element DOMConverter.convert(org.w3c.dom.Element element)
           Translates a DOM org.w3c.dom.Element object into an equivalent nu.xom.Element object.
 

Uses of Element in nu.xom.tests
 

Methods in nu.xom.tests with parameters of type Element
static void XOMTestCase.assertEquals(Element expected, Element actual)
           Asserts that two element nodes are equal.
static void XOMTestCase.assertEquals(java.lang.String message, Element expected, Element actual)
           Asserts that two element nodes are equal.
 



Copyright 2002-2004 Elliotte Rusty Harold
elharo@metalab.unc.edu