On 04/28/2010 04:13 PM, Nicholas Blatter wrote: > On Wed, Apr 28, 2010 at 3:30 PM, AJ ONeal<[email protected]> wrote: > >> Before you go to the dark side, just consider this: >> http://coolaj86.blogspot.com/2010_03_01_archive.html#606168721267093296 >> > At least compare apples to apples. The XML example you gave has a lot > more information in it than the JSON example does. If you want to > compare the two the XML would look more like this > > <?xml version="1.0" encoding="UTF-8" ?> > <service name="shell"> > <disable>yes</disable> > <socket_type>stream</socket_type> > <wait>no</wait> > <user>root</user> > <server>/usr/libexec/rshd</server> > <groups>yes</groups> > <flags>REUSE</flags> > </service> >
Also, if speed matters to your application at all, you'll probably find that parsing XML is about 10 times slower than parsing pretty much any other format you choose (be it JSON, Ini or other). That was my experience, which is one of many reason I left it years ago. --Dave -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
