public final class XmlUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
appendChild(Page page,
DomNode parent,
Node child)
|
static Document |
buildDocument(WebResponse webResponse)
Builds a document from the content of the webresponse.
|
protected static org.apache.commons.logging.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.
|
public static Document buildDocument(WebResponse webResponse) throws IOException, SAXException, ParserConfigurationException
webResponse - The response from the serverIOException - If the page could not be createdSAXException - if the parsing failsParserConfigurationException - if a DocumentBuilder cannot be createdprotected static org.apache.commons.logging.Log getLog()
public static void appendChild(Page page, DomNode parent, Node child)
page - the owner page of XmlElements 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)Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.