Issue Details (XML | Word | Printable)

Key: XMLRPC-60
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Critical Critical
Assignee: Unassigned
Reporter: elharo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XML-RPC

MinML is Evil

Created: 31/May/05 09:52 PM   Updated: 08/Jun/05 02:40 PM
Return to search
Component/s: Source
Affects Version/s: 2.0
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 01/Jun/05 06:22 AM


 Description  « Hide
MinML is not an XML parser, It does not correctly implement the XML specification in a variety of ways. It should not be bundled and should not be used. Given that Java 1.4 now includes a much more conformant parser (and Java 1.5 includes an even better one) there's no excuse for distributing a non-conformant parser like MinML. XML-RPC is XML, and nothing less than a real XML parser can handle it correctly.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Danny Angus added a comment - 31/May/05 10:38 PM
This is a very vague observation, with a very strongly worded proposal for its resolution.
Might I suggest that the way to procede is to describe some concrete instances of MinML's failure in the role, and if possible provide some simple reproducable test cases to support your opinion.

Might I also point out: "http://ws.apache.org/xmlrpc/parser.html" which describes how to use any other parser.

I would respectfully suggest this issue be downgraded to "Minor" "Wish" and resolve by changing the _default_ parser to the J2SE default.

elharo added a comment - 01/Jun/05 12:16 AM
A quick perusal of the MinML web page shows that it advertises non-conformance to XML. In particular it fails to handle the internal DTD subset as required by the XML specification. I don't doubt that I could find other non-conformances if I actually started parsing documents with it.

Jochen Wiedmann added a comment - 01/Jun/05 06:22 AM
First of all, let me say, that I am not so keen with MinML either and share your opinion, that a modern XML parser and
preferrably the JRE's parser should be default.

However, as already pointed out, this can easily be achieved and you are by no means forced to use MinML. Besides, take a look at

http://cvs.apache.org/viewcvs.cgi/ws-xmlrpc/?only_with_tag=b20050512_streaming

and you'll note, that the use of SAX2 is already implemented in a branch.

Daniel Rall added a comment - 08/Jun/05 02:40 PM
I'd be okay with an enhancement which defaults to a SAX2-compliant parser when available, but this isn't always the case. MinML is a good fallback for those situations (e.g. applets).