Class MalformedXMLParser

java.lang.Object
net.adoptopenjdk.icedteaweb.xmlparser.XMLParser
net.adoptopenjdk.icedteaweb.xmlparser.MalformedXMLParser

public class MalformedXMLParser extends XMLParser
An specialized XMLParser that uses TagSoup[1] to parse malformed XML

Used by net.sourceforge.jnlp.Parser

[1] http://home.ccil.org/~cowan/XML/tagsoup/

  • Field Details

    • LOG

      private static final Logger LOG
  • Constructor Details

    • MalformedXMLParser

      public MalformedXMLParser()
  • Method Details

    • preprocessXml

      public String preprocessXml(String original) throws ParseException
      Reads malformed XML from the InputStream original and returns a new InputStream which can be used to read a well-formed version of the input
      Overrides:
      preprocessXml in class XMLParser
      Parameters:
      original - original input
      Returns:
      an InputStream which can be used to read a well-formed version of the input XML
      Throws:
      ParseException - if an exception occurs while parsing the input