bugreport kXML-RPC
Heiko Milke <[email protected]> Mon, 27 Oct 2003 17:15:48 +0100
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Message-ID | <[email protected]> |
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!