Class HTMLParser

java.lang.Object
com.webmethods.rtl.markup.xml.parser.BaseParser
com.webmethods.rtl.markup.html.parser.HTMLParser
All Implemented Interfaces:
XMLReader

public class HTMLParser extends BaseParser
SAX parser that parses non-well-formed html. Only one thread at a time may use this parser.
  • Field Details

    • ELEMENT_TYPE_WHATEVER

      public static final int ELEMENT_TYPE_WHATEVER
      Element can be either inline or block or whatever.
      See Also:
    • ELEMENT_TYPE_EMPTY

      public static final int ELEMENT_TYPE_EMPTY
      Empty element. For example, br.
      See Also:
    • ELEMENT_TYPE_INLINE

      public static final int ELEMENT_TYPE_INLINE
      Inline element. For example, span.
      See Also:
    • ELEMENT_TYPE_P

      public static final int ELEMENT_TYPE_P
      Block element closed by any other block element. For example, p.
      See Also:
    • ELEMENT_TYPE_TABLE

      public static final int ELEMENT_TYPE_TABLE
      Table element (other than table) closed by any other table element. For example, thead, tr, or td.
      See Also:
    • ELEMENT_TYPE_LI

      public static final int ELEMENT_TYPE_LI
      List item closed by any other li element. For example, li, dt, or dd.
      See Also:
    • ELEMENT_TYPE_LIST

      public static final int ELEMENT_TYPE_LIST
      Block element closed by an element of the same type. For example, address.
      See Also:
    • ELEMENT_TYPE_NESTED

      public static final int ELEMENT_TYPE_NESTED
      Block element that can be nested. For example, div.
      See Also:
    • ELEMENT_TYPE_SCRIPT

      public static final int ELEMENT_TYPE_SCRIPT
      Block element that doesn't contain markup. For example, script or style.
      See Also:
    • ELEMENT_TYPE_FORM

      public static final int ELEMENT_TYPE_FORM
      Element that doesn't have to follow any nesting rules or even be well-formed.
      See Also:
    • m_buf

      protected char[] m_buf
    • m_elemStack

      protected List m_elemStack
    • m_attrs

      protected AttributesImpl m_attrs
    • HTMLElementTypes

      public static Map HTMLElementTypes
    • HTMLEntities

      public static Map HTMLEntities
  • Constructor Details

    • HTMLParser

      public HTMLParser()
  • Method Details