Package gw.xml.simple

Class SimpleXmlNodeWriter

java.lang.Object
gw.xml.simple.SimpleXmlNodeWriter

public class SimpleXmlNodeWriter extends Object
  • Field Details

  • Constructor Details

    • SimpleXmlNodeWriter

      private SimpleXmlNodeWriter()
  • Method Details

    • writeToString

      public static String writeToString(SimpleXmlNode node)
    • createXml

      private String createXml(SimpleXmlNode node)
    • appendNode

      private void appendNode(SimpleXmlNode node)
    • appendAttributes

      private void appendAttributes(SimpleXmlNode node)
    • appendChildren

      private void appendChildren(SimpleXmlNode node)
    • pushIndent

      private void pushIndent()
    • popIndent

      private void popIndent()
    • appendIndent

      private void appendIndent()
    • xmlEncode

      private static String xmlEncode(String input, boolean attribute)
      Properly encodes user input for inclusion in an XML document.
      Parameters:
      input - the input to encode
      attribute - is this for an attribute? (returned value will be pre-quoted)
      Returns:
      the XML-encoded input