Package org.petitparser.grammar.xml.ast
Class XmlDocument
java.lang.Object
org.petitparser.grammar.xml.ast.XmlNode
org.petitparser.grammar.xml.ast.XmlParent
org.petitparser.grammar.xml.ast.XmlDocument
public class XmlDocument extends XmlParent
XML document node.
-
Constructor Summary
Constructors Constructor Description XmlDocument(Collection<XmlNode> children) -
Method Summary
Modifier and Type Method Description XmlDocumentgetDocument()Answer the document that contains this node, ornullif the node is not part of a document.XmlElementgetRootElement()Methods inherited from class org.petitparser.grammar.xml.ast.XmlParent
equals, getChildren, hashCode, writeToMethods inherited from class org.petitparser.grammar.xml.ast.XmlNode
getAttributes, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling, getRoot, iterator, toString, toXmlString
-
Constructor Details
-
Method Details
-
getDocument
Description copied from class:XmlNodeAnswer the document that contains this node, ornullif the node is not part of a document.- Overrides:
getDocumentin classXmlNode
-
getRootElement
-