[JDEV] Why XML for everything?

Jonathan Wight JWight at bigfoot.com
Wed Sep 29 22:51:40 CDT 1999


John Price wrote:

<snipped>

> Sure, it's somewhat more cryptic, but it's A LOT easier to parse
> with a program than XML.  There is a defined order and length to
> nearly every field.  You don't need a "perfect hash table," no token
> parsing, and really only one jump table indexed by the packet type.

<snipped>

You're missing the whole point John. The main benefits (IMHO) of using XML
are its extreme flexibility and its "openness". The (small) overhead of an
XML parser is a fair price to pay - especially as all the 'hard' work is
already done for you (expat being one example of a small and quite useful
xml lib).

    Jon.




More information about the JDev mailing list