C++ XML Parser
Mike - EMAIL IGNORED
m_d_berger_1900 at yahoo.com
Thu Jan 4 02:23:35 UTC 2007
On Wed, 03 Jan 2007 13:30:18 -0500, Dmitriy Kropivnitskiy wrote:
> James Kosin wrote:
[...]
>>
>> An XML parser is more or less a text parser.
>> Usually best to write your own. It is very simple design and
>> straightforward.
>
> Yikes! This is a very bad suggestion. The idea behind standards like XML is to have standard tools to work with them, thus eliminating repeating the
> same mistakes in every implementation. You don't go writing a new regular expression parser every time you need regexes do you? To answer the original
> email, there are a few XML parsers in common use out there. The main ones for UNIX are probably libxml and expat.
>
I agree with both of the quoted sentiments. I took a look at one of
the recommended parsers, and decided that it would take a while to
install it and figure out how to use it. However, since:
1) I already have a well tested general token parser;
2) my present XML requirement is close to the most trivial
possible;
I parsed it directly, with numerous application-specific tests
for validity. In a couple of hours, it is tested and running.
However, for general application, the use of software conforming
standards is certainly preferable. There seems to be a number of
choices.
How to choose?
Thanks,
Mike.
More information about the fedora-list
mailing list