public class XmlPage extends SgmlPage
DomNode.ChildIterator, DomNode.DescendantElementsIterator<T extends DomNode>
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
XmlPage(Node node,
WebWindow enclosingWindow)
Creates an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow,
boolean ignoreSAXException)
Creates an instance.
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow,
boolean ignoreSAXException,
boolean handleXHTMLAsHTML)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
Node |
adoptNode(Node source)
Not yet implemented.
|
Attr |
createAttributeNS(String namespaceURI,
String qualifiedName)
Not yet implemented.
|
DomElement |
createElement(String tagName) |
DomElement |
createElementNS(String namespaceURI,
String qualifiedName) |
EntityReference |
createEntityReference(String name)
Not yet implemented.
|
DomProcessingInstruction |
createProcessingInstruction(String target,
String data) |
Charset |
getCharset()
Returns the encoding.
|
String |
getContentType()
Returns the content type of this page.
|
String |
getDocumentURI()
Not yet implemented.
|
DOMConfiguration |
getDomConfig()
Not yet implemented.
|
Element |
getElementById(String elementId)
Not yet implemented.
|
DOMImplementation |
getImplementation()
Not yet implemented.
|
String |
getInputEncoding()
Not yet implemented.
|
boolean |
getStrictErrorChecking()
Not yet implemented.
|
Document |
getXmlDocument()
Returns the DOM representation of the XML content.
|
String |
getXmlEncoding() |
boolean |
getXmlStandalone() |
String |
getXmlVersion() |
boolean |
hasCaseSensitiveTagNames()
Returns
true if this page has case-sensitive tag names, false otherwise. |
Node |
importNode(Node importedNode,
boolean deep)
Not yet implemented.
|
void |
initialize()
Initialize this page.
|
Node |
renameNode(Node n,
String namespaceURI,
String qualifiedName)
Not yet implemented.
|
void |
setDocumentType(DocumentType type)
Sets the document type.
|
void |
setDocumentURI(String documentURI)
Not yet implemented.
|
void |
setNodeValue(String value) |
void |
setPrefix(String prefix) |
void |
setStrictErrorChecking(boolean strictErrorChecking)
Not yet implemented.
|
void |
setXmlStandalone(boolean xmlStandalone)
Not yet implemented.
|
void |
setXmlVersion(String xmlVersion)
Not yet implemented.
|
asXml, characterDataChangeListenerAdded, cleanUp, clearComputedStyles, clearComputedStyles, clearComputedStylesUpToRoot, clone, createAttribute, createCDATASection, createComment, createDocumentFragment, createNodeIterator, createTextNode, domChangeListenerAdded, getCanonicalXPath, getDoctype, getDocumentElement, getElementsByTagName, getElementsByTagNameNS, getEnclosingWindow, getNodeName, getNodeType, getPage, getUrl, getWebClient, getWebResponse, isCharacterDataChangeListenerInUse, isDomChangeListenerInUse, isHtmlPage, isPrinting, normalizeDocument, setEnclosingWindow, setPrinting
addCharacterDataChangeListener, addDomChangeListener, appendChild, asNormalizedText, basicRemove, checkChildHierarchy, cloneNode, closest, compareDocumentPosition, detach, fireCharacterDataChanged, fireNodeAdded, fireNodeDeleted, getAncestors, getAttributes, getBaseURI, getByXPath, getByXPath, getChildNodes, getChildren, getDescendants, getDomElementDescendants, getEndColumnNumber, getEndLineNumber, getFeature, getFirstByXPath, getFirstByXPath, getFirstChild, getHtmlElementDescendants, getHtmlPageOrNull, getIndex, getLastChild, getLocalName, getNamespaceURI, getNextElementSibling, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousElementSibling, getPreviousSibling, getReadyState, getScriptableObject, getSelectorList, getStartColumnNumber, getStartLineNumber, getTextContent, getUserData, getVisibleText, handles, hasAttributes, hasChildNodes, hasFeature, insertBefore, insertBefore, isAncestorOf, isAncestorOfAny, isAttachedToPage, isDefaultNamespace, isDisplayed, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, mayBeDisplayed, normalize, notifyIncorrectness, onAddedToDocumentFragment, onAddedToPage, onAllChildrenAddedToPage, parseHtmlSnippet, printChildrenAsXml, printXml, processImportNode, querySelector, querySelectorAll, quietlyRemoveAndMoveChildrenTo, remove, removeAllChildren, removeCharacterDataChangeListener, removeChild, removeDomChangeListener, replace, replaceChild, setEndLocation, setParentNode, setReadyState, setScriptableObject, setStartLocation, setTextContent, setUserData
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setTextContent, setUserData
public XmlPage(WebResponse webResponse, WebWindow enclosingWindow) throws IOException
webResponse
- the response from the serverenclosingWindow
- the window that holds the pageIOException
- if the page could not be createdpublic XmlPage(Node node, WebWindow enclosingWindow)
node
- the node to initialize this page withenclosingWindow
- the window that holds the pagepublic XmlPage(WebResponse webResponse, WebWindow enclosingWindow, boolean ignoreSAXException) throws IOException
webResponse
- the response from the serverenclosingWindow
- the window that holds the pageignoreSAXException
- Whether to ignore SAXException
or throw it as IOException
IOException
- if the page could not be createdpublic XmlPage(WebResponse webResponse, WebWindow enclosingWindow, boolean ignoreSAXException, boolean handleXHTMLAsHTML) throws IOException
webResponse
- the response from the serverenclosingWindow
- the window that holds the pageignoreSAXException
- Whether to ignore SAXException
or throw it as IOException
handleXHTMLAsHTML
- if true elements from the XHTML namespace are handled as HTML elements instead of
DOM elementsIOException
- if the page could not be createdpublic void initialize() throws IOException
IOException
- if an IO problem occurspublic boolean hasCaseSensitiveTagNames()
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.hasCaseSensitiveTagNames
in class SgmlPage
true
if this page has case-sensitive tag names, false
otherwisepublic Document getXmlDocument()
null
if the content couldn't be parsedpublic Attr createAttributeNS(String namespaceURI, String qualifiedName)
public DomElement createElement(String tagName)
public DomElement createElementNS(String namespaceURI, String qualifiedName)
public EntityReference createEntityReference(String name)
public DomProcessingInstruction createProcessingInstruction(String target, String data)
public String getDocumentURI()
public DOMConfiguration getDomConfig()
public DOMImplementation getImplementation()
public String getInputEncoding()
public boolean getStrictErrorChecking()
public String getXmlEncoding()
public boolean getXmlStandalone()
public String getXmlVersion()
public Node renameNode(Node n, String namespaceURI, String qualifiedName)
public void setDocumentURI(String documentURI)
public void setStrictErrorChecking(boolean strictErrorChecking)
public void setXmlStandalone(boolean xmlStandalone)
public void setXmlVersion(String xmlVersion)
public Charset getCharset()
getCharset
in class SgmlPage
public String getContentType()
getContentType
in class SgmlPage
public void setDocumentType(DocumentType type)
setDocumentType
in class SgmlPage
type
- the document typepublic void setNodeValue(String value)
public void setPrefix(String prefix)
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.