Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Vanilla XML parser

Thread Tools

Vanilla XML parser

Bill Davy
Posts: n/a
"John Bode" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Thursday, August 23, 2012 3:45:16 PM UTC-5, Malcolm McLean wrote:
>> As part of the binary image processing library work I had to load some
>> XML
>> files. There doesn't seem to be a lightweight XML parser available on the
>> web.
>> Plenty of bloated ones that require full-fledged installs. But nothing
>> you
>> can just grab and compile.
>> So I decided to write a vanilla one myself. It did the job, and loaded my
>> data files. But it only weighs in as a single average-length source file.
>> That's partly because it only does ascii, doesn't handle defined entities
>> or special tags, and so on.
>> But is there the potential for this to be developed into a lightweight,
>> single
>> file parser? Ther's also a question for Jacob here. The structure is
>> simply
>> a tree. How would the container library map on to XML?

> I've wrote my own XML parser for a project some years ago. It even
> worked...mostly...after a couple of iterations.
> If I had it to do over again I'd just go with expat and be done with it.
> I'll take a little code bloat if it saves me some headaches in the end.

I found TinyXML ( worked for me.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML::Parser Installation error: XML-Parser-2.34 Sean Perl Misc 3 10-03-2006 01:23 AM
XML::Parser Installation error: XML-Parser-2.34 Sean Perl Misc 0 10-02-2006 06:20 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
XML-Parser to XML-Parser communication (encoding issues?) arne Perl Misc 0 09-13-2005 12:53 PM
Custom or vanilla Collection/Map? VisionSet Java 3 09-15-2003 06:39 AM