Class XHtmlPage

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Page, org.w3c.dom.Document, org.w3c.dom.Node

    public class XHtmlPage
    extends HtmlPage
    A representation of an XHTML page returned from a server.
    See Also:
    Serialized Form
    • Constructor Detail

      • XHtmlPage

        public XHtmlPage​(WebResponse webResponse,
                         WebWindow webWindow)
        Creates a new XHTML page instance. An XHTML page instance is normally retrieved with WebClient.getPage(String).
        Parameters:
        webResponse - the web response that was used to create this page
        webWindow - the window that this page is being loaded into
    • Method Detail

      • hasCaseSensitiveTagNames

        public boolean hasCaseSensitiveTagNames()
        Returns true if this page has case-sensitive tag names, false otherwise. In general, XML has case-sensitive tag names, and HTML doesn't. This is especially important during XPath matching.
        Overrides:
        hasCaseSensitiveTagNames in class HtmlPage
        Returns:
        true if this page has case-sensitive tag names, false otherwise