| |
|
| java.lang.Object com.gargoylesoftware.htmlunit.html.DomNode com.gargoylesoftware.htmlunit.SgmlPage com.gargoylesoftware.htmlunit.xml.XmlPage
XmlPage | public class XmlPage extends SgmlPage (Code) | | A page that will be returned for response with content type "text/xml".
It doesn't implement itself
org.w3c.dom.Document to allow to see the source of badly formed
xml responses.
version: $Revision: 2132 $ author: Marc Guillemot author: David K. Taylor author: Ahmed Ashour |
XmlPage | public XmlPage(WebResponse webResponse, WebWindow enclosingWindow) throws IOException(Code) | | Create an instance.
A warning is logged if an exception is thrown while parsing the xml content
(for instance when the content is not a valid xml and can't be parsed).
Parameters: webResponse - The response from the server Parameters: enclosingWindow - The window that holds the page. throws: IOException - If the page could not be created |
XmlPage | public XmlPage(Node node, WebWindow enclosingWindow)(Code) | | Create an instance.
A warning is logged if an exception is thrown while parsing the xml content
(for instance when the content is not a valid xml and can't be parsed).
Parameters: node - The node to initialize this page with. Parameters: enclosingWindow - The window that holds the page. |
XmlPage | public XmlPage(WebResponse webResponse, WebWindow enclosingWindow, boolean ignoreSAXException) throws IOException(Code) | | Create an instance.
A warning is logged if an exception is thrown while parsing the xml content
(for instance when the content is not a valid xml and can't be parsed).
Parameters: webResponse - The response from the server Parameters: enclosingWindow - The window that holds the page. Parameters: ignoreSAXException - Whether to ignore SAXException or throw it as IOException. throws: IOException - If the page could not be created |
cleanUp | public void cleanUp()(Code) | | Clean up this page.
|
createXmlElement | public XmlElement createXmlElement(String tagName)(Code) | | Create a new XML element with the given tag name.
Parameters: tagName - The tag name. the new XML element. |
createXmlElementNS | public XmlElement createXmlElementNS(String namespaceURI, String qualifiedName)(Code) | | Create a new HtmlElement with the given namespace and qualified name.
Parameters: namespaceURI - the URI that identifies an XML namespace. Parameters: qualifiedName - The qualified name of the element type to instantiate the new HTML element. |
getContent | public String getContent()(Code) | | Return the content of the page
See above |
getDocumentXmlElement | public XmlElement getDocumentXmlElement()(Code) | | Get the root XmlElement of this document.
The root element |
getXmlDocument | public Document getXmlDocument()(Code) | | Gets the DOM representation of the xml content
null if the content couldn't be parsed. |
setScriptObject | public void setScriptObject(ScriptableObject scriptObject)(Code) | | |
|
|
|