|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.xml.XmlUtil
public final class XmlUtil
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Provides facility method to work with XML responses.
| Method Summary | |
|---|---|
static void |
appendChild(SgmlPage page,
DomNode parent,
Node child)
Recursively appends a Node child to DomNode parent. |
static Document |
buildDocument(WebResponse webResponse)
Builds a document from the content of the web response. |
static String |
lookupNamespaceURI(DomElement element,
String prefix)
Search for the namespace URI of the given prefix, starting from the specified element. |
static String |
lookupPrefix(DomElement element,
String namespace)
Search for the prefix associated with specified namespace URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Document buildDocument(WebResponse webResponse)
throws IOException,
SAXException,
ParserConfigurationException
webResponse - the response from the server
IOException - if the page could not be created
SAXException - if the parsing fails
ParserConfigurationException - if a DocumentBuilder cannot be created
public static void appendChild(SgmlPage page,
DomNode parent,
Node child)
Node child to DomNode parent.
page - the owner page of DomElements to be createdparent - the parent DomNodechild - the child Node
public static String lookupNamespaceURI(DomElement element,
String prefix)
element - the element to start searching fromprefix - the namespace prefix
public static String lookupPrefix(DomElement element,
String namespace)
element - the element to start searching fromnamespace - the namespace prefix
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||