Package org.frankframework.util
Class XmlBuilder
java.lang.Object
org.frankframework.util.XmlBuilder
Builds an XML-element with attributes and sub-elements. Attributes can be
added with the addAttribute method, the content can be set with the setValue
method. Sub elements can be added with the addSubElement method. the toXML
function returns the node and sub nodes as an indented xml string.
If possible, use
SaxDocumentBuilder
or IDocumentBuilder
(from DocumentBuilderFactory
)- Author:
- Johan Verrips, Peter Leeuwenburgh
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String name, boolean value) void
addAttribute
(String name, long value) void
addAttribute
(String name, String value) void
addSubElement
(String name, String value) void
addSubElement
(XmlBuilder newElement) static XmlBuilder
void
setCdataValue
(String value) void
void
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
XmlBuilder
-
-
Method Details
-
create
-
addAttribute
-
addAttribute
-
addAttribute
-
addSubElement
-
addSubElement
-
setCdataValue
-
setValue
-
setValue
-
asMessage
-
asXmlString
-