public class XMLBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLBuilder.XMLElement |
Modifier and Type | Method and Description |
---|---|
XMLBuilder |
appendAfter(String xpath,
XMLBuilder.XMLElement element) |
XMLBuilder |
appendBefore(String xpath,
XMLBuilder.XMLElement element) |
XMLBuilder |
appendTo(String xpath,
XMLBuilder.XMLElement element) |
XMLBuilder |
appendToRoot(XMLBuilder.XMLElement element) |
Attr |
attribute(String qname,
String value) |
Comment |
comment(String comment) |
XMLBuilder.XMLElement |
element(QName qname,
Attr... attributes) |
XMLBuilder.XMLElement |
element(String qname,
Attr... attributes) |
Document |
getDocument() |
SimpleNamespaceContext |
getNamespaces() |
XMLBuilder |
namespace(String prefix,
String namespace) |
XMLBuilder |
replaceNodeAt(String xpath,
XMLBuilder.XMLElement element) |
Text |
text(String content) |
static XMLBuilder |
withDocument(Document source) |
static XMLBuilder |
withNewDocument() |
public static XMLBuilder withNewDocument()
public static XMLBuilder withDocument(Document source)
public Document getDocument()
public SimpleNamespaceContext getNamespaces()
public XMLBuilder appendToRoot(XMLBuilder.XMLElement element)
public XMLBuilder appendTo(String xpath, XMLBuilder.XMLElement element)
public XMLBuilder replaceNodeAt(String xpath, XMLBuilder.XMLElement element)
public XMLBuilder appendBefore(String xpath, XMLBuilder.XMLElement element)
public XMLBuilder appendAfter(String xpath, XMLBuilder.XMLElement element)
public XMLBuilder namespace(String prefix, String namespace)
public XMLBuilder.XMLElement element(String qname, Attr... attributes)
public XMLBuilder.XMLElement element(QName qname, Attr... attributes)
Copyright © 2004–2016 52north.org. All rights reserved.