Package gw.xml.simple
Class SimpleXmlNodeWriter
java.lang.Object
gw.xml.simple.SimpleXmlNodeWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
appendChildren
(SimpleXmlNode node) private void
private void
appendNode
(SimpleXmlNode node) private String
createXml
(SimpleXmlNode node) private void
private void
static String
writeToString
(SimpleXmlNode node) private static String
Properly encodes user input for inclusion in an XML document.
-
Field Details
-
_sb
-
_indent
private int _indent
-
-
Constructor Details
-
SimpleXmlNodeWriter
private SimpleXmlNodeWriter()
-
-
Method Details
-
writeToString
-
createXml
-
appendNode
-
appendAttributes
-
appendChildren
-
pushIndent
private void pushIndent() -
popIndent
private void popIndent() -
appendIndent
private void appendIndent() -
xmlEncode
Properly encodes user input for inclusion in an XML document.- Parameters:
input
- the input to encodeattribute
- is this for an attribute? (returned value will be pre-quoted)- Returns:
- the XML-encoded input
-