[JDEV] Java XML Parsers

Daniel Veillard veillard at redhat.com
Sun Dec 30 04:15:05 CST 2001


On Sun, Dec 30, 2001 at 09:38:56AM +0000, Al Sutton wrote:
> I'm biased, but I prefer the one I wrote. It's available from
> http://www.alsutton.com/ under the My Software link.
> 
> It's designed to be small, and isn't fully featured, but does enough to

  Then it's probably not an XML parser. 
    tagName = data.substring(0,spaceIdx).toLowerCase();
for example is very suspicious (XML Names are case sensitive),
it doesn't seems to look at the XML Declaration to check encodings etc...
In a nutshell, though it may be able to extract informations from a well
formed XML document it doesn't look like an XML parser and you should
not advertize it as such, sorry for being pedantic but it's not good.

  XML defines relatively precisely the processing model of the
parser including error detection and signalling. The goal is to have
interoperable implementations. Deviation from the spec makes thing
harder for the users, for example a Jabber client based on your parser
will not react similary to a client based on an XML parser.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



More information about the JDev mailing list