Class XMLSanitizer


  • class XMLSanitizer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLSanitizer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.String sanitizeXml​(java.io.Reader in)
      Reads an xml file and removes the comments, leaving only relevant xml code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLSanitizer

        XMLSanitizer()
    • Method Detail

      • sanitizeXml

        static java.lang.String sanitizeXml​(java.io.Reader in)
        Reads an xml file and removes the comments, leaving only relevant xml code.
        Parameters:
        in - The reader of the containing the xml.
        Returns:
        A new reader for the sanitized xml