Class AnyElementState


  • public class AnyElementState
    extends ParseState
    Parses any valid XML; handles unimplemented tags. Often used while a parser is under construction to parse and ignore tags that the parser does not yet handle.
    • Constructor Detail

      • AnyElementState

        public AnyElementState​(XMLParserHandler theHandler)
        Constructor.
        Parameters:
        theHandler - the SAX parser handler
    • Method Detail

      • startElement

        public AbstractParseState startElement​(java.lang.String tagName)
        Description copied from class: AbstractParseState
        Start a new tag. Derived classes override this to create a state to handle the element. Call this method to issue an error for, and ignore, any unrecognized tags.
        Overrides:
        startElement in class AbstractParseState
        Parameters:
        tagName - the name of the starting element
        Returns:
        the state to parse the given tag
        See Also:
        DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)