Hi,
I faced a similar problem and found that dom4j www.dom4j.org worked very
well for me. They have good documentation and *examples*! Dom4j is
really easy to use I using something like this. This is Jython/python
but I'm sure you'll get the idea.
statusCode = httpClient.executeMethod(post)
if statusCode == HttpStatus.SC_OK:
resultText = post.getResponseBodyAsString()
# take the http response and convert it to a dom object.
doc = DocumentHelper.parseText(textstr)
#now do what ever you need to do with the xml
Regards,
Greg Moore
SQA Lead
ADP, Inc.
-----Original Message-----
From: Bala mani [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 6:40 AM
To: [email protected]
Subject: Parsing the Html Response or Creating DOM or DTD from the
response.
Hi,
I have been using HttpClient Package for sometime. I develope a
browser
simulation and I am using HttpClient package for sending and receiving
the
user request to server.When i get response for a page.
I am supposed to send the subsequent Nonhtml resource request such as
images,Css and javascript files.
Does Httpclient support creating the DOM or DTD which would be easy to
reterive FormData values.
ThankYou.
--
View this message in context:
http://www.nabble.com/Parsing-the-Html-Response-or-Creating-DOM-or-DTD-f
rom-the-response.-tf4151702.html#a11810707
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message and any attachments are intended only for the use of the addressee
and may contain information that is privileged and confidential. If the reader
of the message is not the intended recipient or an authorized representative of
the intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication
in error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]