Package gnu.xml

Class XMLParser


  • public class XMLParser
    extends java.lang.Object
    Reads XML from a char array. Assumes a state-less character encoding containing ascii as a sub-set, and where no byte in a multi-byte character is the same as a xml special character. Any bytes with high-order bit set are treated as if they are letters, and can be part of names. Handles CR/LF, CDATA, entity references, processing instructions, DOCTYPE, as well as the obvious (text, element, and attributes).
    • Constructor Detail

      • XMLParser

        public XMLParser()
    • Method Detail

      • parse

        public static void parse​(java.lang.Object uri,
                                 SourceMessages messages,
                                 Consumer out)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • XMLStreamReader

        public static gnu.kawa.io.BinaryInPort XMLStreamReader​(java.io.InputStream strm)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static void parse​(java.io.InputStream strm,
                                 java.lang.Object uri,
                                 SourceMessages messages,
                                 Consumer out)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static void parse​(gnu.kawa.io.InPort in,
                                 SourceMessages messages,
                                 Consumer out)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static void parse​(gnu.kawa.io.InPort in,
                                 SourceMessages messages,
                                 XMLFilter filter)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parse

        public static void parse​(gnu.kawa.io.InPort in,
                                 XMLFilter out)