logo       

bugreport kXML-RPC: msg#00038

java.enhydra.general

Subject: bugreport kXML-RPC

Hey,

i got problems parsing XML-RPC responses that contains whitespaces.

So i had a look into the sourcecode and found out that
in class XmlRpcParser in function parseParams there is a little bug.

The param elements is allowed to be followed by a value element.

If there are whitespaces between the param and the value element i get an
parsing exception.

I fixed the bug by adding a call of the skip method which is consuming
whitespaces before reading the value element.

Line 141 : parser.read( Xml.START_TAG, "", "param" );
Line 142 : // Retrieve a Java representation of the XML-RPC parameter value

I added a Line (143)

parser.skip();

Since i couldnt find anything like this in the cvs i suggest to include this
bugfix in the next release.

Hope to hear from you.

Best regards,
Heiko Milke!


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise