| Package | Description |
|---|---|
| org.petitparser.grammar.xml |
This package provides a simple XML model and its associated parser.
|
| org.petitparser.grammar.xml.ast |
| Modifier and Type | Method | Description |
|---|---|---|
XmlNode |
XmlBuilder.createAttribute(XmlName name,
String text) |
|
XmlNode |
XmlBuilder.createCDATA(String text) |
|
XmlNode |
XmlBuilder.createComment(String text) |
|
XmlNode |
XmlBuilder.createDoctype(String text) |
|
XmlNode |
XmlBuilder.createDocument(Collection<XmlNode> children) |
|
XmlNode |
XmlBuilder.createElement(XmlName name,
Collection<XmlAttribute> attributes,
Collection<XmlNode> children) |
|
XmlNode |
XmlBuilder.createProcessing(String target,
String text) |
|
XmlNode |
XmlBuilder.createText(String text) |
| Modifier and Type | Method | Description |
|---|---|---|
XmlNode |
XmlBuilder.createDocument(Collection<XmlNode> children) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
XmlAttribute |
XML attribute node.
|
class |
XmlCdata |
XML text node.
|
class |
XmlComment |
An XML comment node.
|
class |
XmlData |
Abstract XML data node.
|
class |
XmlDoctype |
XML doctype node.
|
class |
XmlDocument |
XML document node.
|
class |
XmlElement |
XML element node.
|
class |
XmlParent |
Abstract XML node with actual children.
|
class |
XmlProcessing |
XML processing instruction.
|
class |
XmlText |
XML text node.
|
| Modifier and Type | Method | Description |
|---|---|---|
XmlNode |
XmlNode.getFirstChild() |
Answer the first child of the receiver or
null. |
XmlNode |
XmlNode.getLastChild() |
Answer the last child of the receiver or
null. |
XmlNode |
XmlNode.getNextSibling() |
Answer the next sibling of the receiver or
null. |
XmlNode |
XmlNode.getParent() |
Answer the parent node of the receiver, or
null if there is none. |
XmlNode |
XmlNode.getPreviousSibling() |
Answer the previous sibling of the receiver or
null. |
XmlNode |
XmlNode.getRoot() |
Answer the root of the subtree in which this node is found, whether that's a document or
another element.
|
| Modifier and Type | Method | Description |
|---|---|---|
List<XmlNode> |
XmlNode.getChildren() |
Answer the child nodes of the receiver.
|
List<XmlNode> |
XmlParent.getChildren() |
|
Iterator<XmlNode> |
XmlNode.iterator() |
Answer an iterator over the receiver, all attributes and nested children.
|
| Constructor | Description |
|---|---|
XmlDocument(Collection<XmlNode> children) |
|
XmlParent(Collection<XmlNode> children) |
Copyright © 2018 PetitParser. All rights reserved.