|
||||||||||
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(Page 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 webresponse. |
protected static Log |
getLog()
Return the log object for this web client |
static String |
lookupNamespaceURI(HtmlElement element,
String prefix)
Search for the namespace URI of the given prefix, starting from the specified element. |
static String |
lookupNamespaceURI(XmlElement element,
String prefix)
Search for the namespace URI of the given prefix, starting from the specified element. |
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 createdprotected static Log getLog()
public static void appendChild(Page page, DomNode parent, Node child)
Node
child to DomNode
parent.
page
- the owner page of XmlElement
s to be created.parent
- the parent DomNode.child
- the child Node.public static String lookupNamespaceURI(XmlElement element, String prefix)
element
- The element to start searching from.prefix
- The namespace prefix.
lookupNamespaceURI(HtmlElement, String)
public static String lookupNamespaceURI(HtmlElement element, String prefix)
element
- The element to start searching from.prefix
- The namespace prefix.
lookupNamespaceURI(XmlElement, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |