Package | Description |
---|---|
net.sf.practicalxml.builder |
XmlBuilder is a tool for declarative construction of XML. |
Modifier and Type | Class and Description |
---|---|
class |
AttributeNode
Holds an attribute, which may or may not be namespaced.
|
class |
CommentNode
Holds a comment.
|
class |
ElementNode
The primary class for building XML trees and converting them to different
JAXP-centric forms.
|
class |
PINode
Holds a processing instruction.
|
class |
TextNode
Holds element content.
|
Modifier and Type | Method and Description |
---|---|
static Node |
XmlBuilder.attribute(String name,
String value)
Creates an attribute without namespace.
|
static Node |
XmlBuilder.attribute(String nsUri,
String qname,
String value)
Creates a namespaced attribute.
|
static Node |
XmlBuilder.comment(String text)
Creates a comment node.
|
static Node |
XmlBuilder.processingInstruction(String target,
String data)
Creates a processing instruction node.
|
static Node |
XmlBuilder.text(String content)
Creates a text node.
|
Modifier and Type | Method and Description |
---|---|
ElementNode |
ElementNode.addChild(Node child)
Adds a child node -- of any type -- to this element.
|
static ElementNode |
XmlBuilder.element(String name,
Node... children)
Creates an element that does not have a namespace.
|
static ElementNode |
XmlBuilder.element(String nsUri,
String qname,
Node... children)
Creates an element, with optional namespace.
|