Package org.gjt.xpp

Interface XmlNode

  • All Superinterfaces:
    XmlStartTag, XmlTag
    All Known Subinterfaces:
    XmlPullNode
    All Known Implementing Classes:
    Node, PullNode

    public interface XmlNode
    extends XmlStartTag
    This class represents XML subtree. XmlNode is extension of XmlStartTag adding support for children (some of them may be also XmlNode so we get recursively built tree) and namespaces declarations associated with this node. When node has no children and namespaces declared it is essentially equivalent to XmlStartTag.

    When XmlNode user does not need namespaces then namespace related methods may be ignored. However to use namespaces it is required to:

    • call setDefaultNamespaceUri() to associate default namespace in which this node is declared
    • and to declare additional namespaces (as of xmlns:prefix="...") with calling first removeNamespaces() and then addNamespaces()
    Author:
    Aleksander Slominski
    See Also:
    XmlStartTag