public final class XmlUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
appendChild(SgmlPage page,
DomNode parent,
Node child)
|
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.
|
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 createdpublic static void appendChild(SgmlPage page, DomNode parent, Node child)
page - the owner page of DomElements to be createdparent - the parent DomNodechild - the child Nodepublic static String lookupNamespaceURI(DomElement element, String prefix)
element - the element to start searching fromprefix - the namespace prefixpublic static String lookupPrefix(DomElement element, String namespace)
element - the element to start searching fromnamespace - the namespace prefixCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.