| Author |
Exception raised when trying to create a document
|
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
I am tring to convert a response into a xml document. Using httpunits object and method WebResponse.getDom() The code is as follows: private void printDocumentModel(WebResponse webresponse) throws Exception { Document doc = webresponse.getDOM(); } and it thows the following exception: The implementation does not support the requested type of object or operation. Thanks for any help Tony
|
 |
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
Sorted the problem httpunit returns a document of type import org.w3c.dom.Document; My jom.jar contains document org.jdom.Document Just cast the firts into the latter. Tony
|
 |
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 521
|
|
|
Actually ignore second reply from me total rubbish
|
 |
 |
|
|
subject: Exception raised when trying to create a document
|
|
|