|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.HTMLParser
public final class HTMLParser
SAX parser implementation that uses the NekoHTML HTMLConfiguration
to parse HTML into a HtmlUnit-specific DOM (HU-DOM) tree.
Field Summary | |
---|---|
static java.lang.String |
XHTML_NAMESPACE
XHTML namespace. |
Method Summary | |
---|---|
static IElementFactory |
getFactory(java.lang.String tagName)
|
static boolean |
getIgnoreOutsideContent()
Deprecated. As of 2.6 without replacement (HtmlUnit tries to mimic browser's behavior and browsers don't ignore outside content) |
static HtmlPage |
parse(WebResponse webResponse,
WebWindow webWindow)
Deprecated. as of version 2.6, please use parseHtml(WebResponse, WebWindow) instead |
static void |
parseFragment(DomNode parent,
java.lang.String source)
Parses the HTML content from the given string into an object tree representation. |
static HtmlPage |
parseHtml(WebResponse webResponse,
WebWindow webWindow)
Parses the HTML content from the specified WebResponse into an object tree representation. |
static XHtmlPage |
parseXHtml(WebResponse webResponse,
WebWindow webWindow)
Parses the XHTML content from the specified WebResponse into an object tree representation. |
static void |
setIgnoreOutsideContent(boolean ignoreOutsideContent)
Deprecated. As of 2.6 without replacement (HtmlUnit tries to mimic browser's behavior and browsers don't ignore outside content) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XHTML_NAMESPACE
Method Detail |
---|
@Deprecated public static void setIgnoreOutsideContent(boolean ignoreOutsideContent)
ignoreOutsideContent
- - boolean flag to set@Deprecated public static boolean getIgnoreOutsideContent()
public static IElementFactory getFactory(java.lang.String tagName)
tagName
- an HTML element tag name
public static void parseFragment(DomNode parent, java.lang.String source) throws org.xml.sax.SAXException, java.io.IOException
parent
- the parent for the new nodessource
- the (X)HTML to be parsed
org.xml.sax.SAXException
- if a SAX error occurs
java.io.IOException
- if an IO error occurs@Deprecated public static HtmlPage parse(WebResponse webResponse, WebWindow webWindow) throws java.io.IOException
parseHtml(WebResponse, WebWindow)
instead
webResponse
- the response datawebWindow
- the web window into which the page is to be loaded
java.io.IOException
- if there is an IO errorpublic static HtmlPage parseHtml(WebResponse webResponse, WebWindow webWindow) throws java.io.IOException
webResponse
- the response datawebWindow
- the web window into which the page is to be loaded
java.io.IOException
- if there is an IO errorpublic static XHtmlPage parseXHtml(WebResponse webResponse, WebWindow webWindow) throws java.io.IOException
webResponse
- the response datawebWindow
- the web window into which the page is to be loaded
java.io.IOException
- if there is an IO error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |