Package org.kissweb

Class XML

java.lang.Object
org.kissweb.XML

public class XML extends Object
Utility methods for dealing with XML.
  • Constructor Details

    • XML

      public XML()
  • Method Details

    • format

      public static String format(Document document)
      Format an XML Document into a pretty formatted String.
      Parameters:
      document -
      Returns:
    • format

      public static String format(String unformattedXml)
      Format an XML String into a pretty formatted String.
      Parameters:
      unformattedXml -
      Returns:
    • parse

      public static Document parse(String in)
      Parse an XML string into an XML Document.
      Parameters:
      in -
      Returns: