tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: I post a text XML with Microsoft.XMLHTTP to servlet
Date Fri, 10 Oct 2003 13:02:26 GMT

You need to read the whole request into a String.  Then, since you want
a DOM document, use a DOM document builder to get it, e.g.
String xmlInput = ...
Reader reader = new Stringeader(xmlInput);
InputSource inputSource = new InputSource(reader);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(inputSource)

(The above are mixed imports from, javax.xml.parsers,

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Jose Alanya []
>Sent: Thursday, October 09, 2003 6:21 PM
>Subject: I post a text XML with Microsoft.XMLHTTP to servlet
>I post a text XML with  Microsoft.XMLHTTP to servlet,
>As I can recover the value of object request from of servlet
>This can :
>something like  :  Document oDocument = xml.paser(objrequest)
>Not getparameter, not getquerystring
>Please  help me!
>best regards,
>Jose Alanya
>From, Lima Peru

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message