Class XmlReader


  • public class XmlReader
    extends java.lang.Object
    Lightweight XML parser. Supports a subset of XML features: elements, attributes, text, predefined entities, CDATA, mixed content. Namespaces are parsed as part of the element or attribute name. Prologs and doctypes are ignored. Only 8-bit character encodings are supported. Input is assumed to be well formed.

    The default behavior is to parse the XML into a DOM. Extends this class and override methods to perform event driven parsing. When this is done, the parse methods will return null.
    • Constructor Detail

      • XmlReader

        public XmlReader()
    • Method Detail

      • open

        protected void open​(java.lang.String name)
      • attribute

        protected void attribute​(java.lang.String name,
                                 java.lang.String value)
      • entity

        @Null
        protected java.lang.String entity​(java.lang.String name)
      • text

        protected void text​(java.lang.String text)
      • close

        protected void close()