com.gargoylesoftware.htmlunit.xml
Class XmlUtil

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.xml.XmlUtil

public final class XmlUtil
extends java.lang.Object

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Provides facility method to work with xml responses.

Version:
$Revision: 1.3 $
Author:
Marc Guillemot

Method Summary
static org.w3c.dom.Document buildDocument(WebResponse webResponse)
 Builds a document from the content of the webresponse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildDocument

public static org.w3c.dom.Document buildDocument(WebResponse webResponse)
                                          throws java.io.IOException,
                                                 org.xml.sax.SAXException,
                                                 javax.xml.parsers.ParserConfigurationException
Builds a document from the content of the webresponse. A warning is logged if an exception is thrown while parsing the xml content (for instance when the content is not a valid xml and can't be parsed).

Parameters:
webResponse - The response from the server
Returns:
the parse result
Throws:
java.io.IOException - If the page could not be created
org.xml.sax.SAXException - if the parsing fails
javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.