Class XMLParseState

  • Direct Known Subclasses:
    XMLEncodingDetector

    public class XMLParseState
    extends TagParseState
    This class takes the output of the basic tag parser and converts it for typical XML usage. It takes the attribute lists, for instance, and converts them to case-sensitive maps.
    • Constructor Detail

      • XMLParseState

        public XMLParseState()
        Constructor.
    • Method Detail

      • noteTag

        protected boolean noteTag​(java.lang.String tagName,
                                  java.util.Map<java.lang.String,​java.lang.String> attributes)
                           throws ManifoldCFException
        Map version of the noteTag method.
        Returns:
        true to halt further processing.
        Throws:
        ManifoldCFException
      • noteQTag

        protected final boolean noteQTag​(java.lang.String tagName,
                                         java.util.List<AttrNameValue> attributes)
                                  throws ManifoldCFException
        This method is called for every <? ... ?> construct, or 'qtag'. Override it to intercept such constructs.
        Overrides:
        noteQTag in class TagParseState
        Returns:
        true to halt further processing.
        Throws:
        ManifoldCFException
      • noteQTag

        protected boolean noteQTag​(java.lang.String tagName,
                                   java.util.Map<java.lang.String,​java.lang.String> attributes)
                            throws ManifoldCFException
        Map version of noteQTag method.
        Returns:
        true to halt further processing.
        Throws:
        ManifoldCFException