| Constructor | Description |
|---|---|
XmlNode() |
| Modifier and Type | Method | Description |
|---|---|---|
List<XmlAttribute> |
getAttributes() |
Answer the attribute nodes of the receiver.
|
List<XmlNode> |
getChildren() |
Answer the child nodes of the receiver.
|
XmlDocument |
getDocument() |
Answer the document that contains this node, or
null if the node is not part of a
document. |
XmlNode |
getFirstChild() |
Answer the first child of the receiver or
null. |
XmlNode |
getLastChild() |
Answer the last child of the receiver or
null. |
XmlNode |
getNextSibling() |
Answer the next sibling of the receiver or
null. |
XmlNode |
getParent() |
Answer the parent node of the receiver, or
null if there is none. |
XmlNode |
getPreviousSibling() |
Answer the previous sibling of the receiver or
null. |
XmlNode |
getRoot() |
Answer the root of the subtree in which this node is found, whether that's a document or
another element.
|
Iterator<XmlNode> |
iterator() |
Answer an iterator over the receiver, all attributes and nested children.
|
String |
toString() |
Answer a print string of the receiver.
|
String |
toXmlString() |
Answer an XML string of the receiver.
|
abstract void |
writeTo(StringBuilder buffer) |
Writes the XML string of the receiver to a
buffer. |
forEach, spliteratorpublic XmlNode getParent()
null if there is none.public List<XmlAttribute> getAttributes()
public Iterator<XmlNode> iterator()
public XmlNode getRoot()
public XmlDocument getDocument()
null if the node is not part of a
document.public final XmlNode getFirstChild()
null.public final XmlNode getLastChild()
null.public final XmlNode getNextSibling()
null.public final XmlNode getPreviousSibling()
null.public String toString()
public String toXmlString()
public abstract void writeTo(StringBuilder buffer)
buffer.Copyright © 2018 PetitParser. All rights reserved.