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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, boolean value) voidaddAttribute(String name, long value) voidaddAttribute(String name, String value) voidaddSubElement(String name, String value) voidaddSubElement(XmlBuilder newElement) static XmlBuildervoidsetCdataValue(String value) voidvoid
-
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
-