Class SaxTools

    • Constructor Detail

      • SaxTools

        public SaxTools()
        Constructor.
    • Method Detail

      • parseXmlFile

        public String parseXmlFile​(File xmlFile)
        Description copied from interface: XmlTools
        Parse a given XML File to grab the content.
        Specified by:
        parseXmlFile in interface XmlTools
        Parameters:
        xmlFile - as File
        Returns:
        content as String
      • parseXmlString

        public String parseXmlString​(String xml)
        Description copied from interface: XmlTools
        Parse a given XML String to grab the content.
        Specified by:
        parseXmlString in interface XmlTools
        Parameters:
        xml - as String
        Returns:
        content as String
      • prettyPrintXml

        public String prettyPrintXml()
        Description copied from interface: XmlTools
        Before you write a XML Document on a file, especially computer generated XML Content, the content should formatted by a CodeBeautifier. This function Beautifies the XML Sources with the following rules:
      • set content to UTF-8 without BOM (Byte Order Mark)
      • automated line breaks and indents
      • remove trailing space
      • replace TAB with 4 space characters
Specified by:
prettyPrintXml in interface XmlTools
Returns:
content as String
Specified by:
shrinkContent in interface XmlTools
Parameters:
content - as String
Returns:
shrink content as String