Class XMLUtils

java.lang.Object
fr.opensagres.xdocreport.core.utils.XMLUtils

public class XMLUtils extends Object
XML Utilities to indent XML.
  • Field Details

  • Constructor Details

    • XMLUtils

      public XMLUtils()
  • Method Details

    • prettyPrint

      public static String prettyPrint(String xml)
      Indent the given xml with the 4 indentation.
      Parameters:
      xml - XML to indent
      Returns:
      Throws:
      Exception
    • prettyPrint

      public static String prettyPrint(String xml, int indent)
      Indent the given xml with the given indent number.
      Parameters:
      xml - XML to indent
      indent - the indent number.
      Returns:
      Throws:
      Exception
    • toAttributesImpl

      public static AttributesImpl toAttributesImpl(Attributes attributes)
      Get the SAX AttributesImpl of teh given attributes to modify attribute values.
      Parameters:
      attributes -
      Returns: