Package gnu.xml
Class XMLParser
java.lang.Object
gnu.xml.XMLParser
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidparse(gnu.kawa.io.InPort in, SourceMessages messages, Consumer out) static voidparse(gnu.kawa.io.InPort in, SourceMessages messages, XMLFilter filter) static voidstatic voidparse(InputStream strm, Object uri, SourceMessages messages, Consumer out) static voidparse(Object uri, SourceMessages messages, Consumer out) static gnu.kawa.io.BinaryInPortXMLStreamReader(InputStream strm)
-
Constructor Details
-
XMLParser
public XMLParser()
-
-
Method Details
-
parse
- Throws:
IOException
-
XMLStreamReader
- Throws:
IOException
-
parse
public static void parse(InputStream strm, Object uri, SourceMessages messages, Consumer out) throws IOException - Throws:
IOException
-
parse
public static void parse(gnu.kawa.io.InPort in, SourceMessages messages, Consumer out) throws IOException - Throws:
IOException
-
parse
public static void parse(gnu.kawa.io.InPort in, SourceMessages messages, XMLFilter filter) throws IOException - Throws:
IOException
-
parse
-