Vijay,

that's not a Xerces-related problem. Xerces is clearly
getting different input in the two different cases. You
need to figure out why the InputStream from the GET query
does not yield the same bytes as the input stream from
the POST query. And if you need help finding that out,
then such help is definitely easier to find if you ask in
a more appropriate venue than the Xerces-J developers'
mailing list.

Cheers,

        - Gulli



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 25. juli 2001 00:04
To: [EMAIL PROTECTED]
Subject: Query regarding xerces for post method 


Hi
I got struck. can anyone help. I have written a java file to 
parse a xml file. I am using two methods Get and Post to send 
the url and queryString (parameters). I am retrieving the 
same xml with both methods. The xml retrieved in both cases 
is ill formed. Means that one of the ending tags has no 
delimiter. like </abc.   ">" is missing.

When I use "GET" method that has url like
www.abc.com?abc="bdsb";
it gives me a error saying tag abc should have a ">" 
delimiter.

when I use "POST" method that has url like
www.abc.com

I post the query string as 

URLConnection.setDoInput(true);
DataOutputStream out = new DataOutputStream
(con.getOutputStream());
out.writeBytes("abc= sdbsjb");

I parse the xml file with

domParser.parse(new InputSource(xmlFile));
Document document = domParser.getDocument();
The problem is with "GET" it gives an error saying tag should 
have a delimiter .

this error doesn't come with "POST".
the xml file is same as verified on the console.

can anybody help me in knowing how to get the message 
in "POST" also.

Thanks
vijay

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to