Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Quick Question: Expat vs LT XML

Reply
Thread Tools

Quick Question: Expat vs LT XML

 
 
winderjj
Guest
Posts: n/a
 
      07-30-2003
Hi All,

I need everyones opinion. I am very new to XML but am temporarily
putting all my efforts into using it. This is what I need to do.

Write an xml parser (in C) that will parse a fairly complicated XML
file that is full of technical data(most scalar values). Then I need
to store all the info in a C structure. Could some people give me
their opinion. Which is better suited for this, Expat or LT xml?

I would also like to be able to validate the XML file against the DTD.
Would one of these be able to do this? I noticed RXP might be good
for this.

Any help/info would be greatly appreciated.

thanks.
 
Reply With Quote
 
 
 
 
Toni Uusitalo
Guest
Posts: n/a
 
      07-30-2003

"winderjj" <> wrote in message
news: om...
> Hi All,
>
> I need everyones opinion. I am very new to XML but am temporarily
> putting all my efforts into using it. This is what I need to do.
>
> Write an xml parser (in C) that will parse a fairly complicated XML
> file that is full of technical data(most scalar values). Then I need
> to store all the info in a C structure. Could some people give me
> their opinion. Which is better suited for this, Expat or LT xml?
>
> I would also like to be able to validate the XML file against the DTD.
> Would one of these be able to do this? I noticed RXP might be good
> for this.
>
> Any help/info would be greatly appreciated.
>
> thanks.


If you must validate, RXP/LT might be only choice for C, I'm not absolutely
sure... check
http://www.xmlsoftware.com/parsers.html
for example.

You might also give a try to Parsifal if you don't need validation and can
live with UTF-8/latin characters, API is somewhat easier to use than Expat.
JUdge for yourself.

Toni Uusitalo


 
Reply With Quote
 
 
 
 
John Winderbaum
Guest
Posts: n/a
 
      07-30-2003
THanks everyone. I really appreciate the feedback.

After posting that first message I made alot more progress. I did
decide to use libxml for my parsing needs. I did some investigation of
discoved the api is much more friends and there is some good
documentation.

I also began to fool around with RXP. I finally got is to validate some
simple XML files against a DTD. All I need is to run it before starting
up my system. Just to validate the data.

thanks for the comments. Am I making sense?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Toni Uusitalo
Guest
Posts: n/a
 
      07-30-2003

"Toni Uusitalo" <> wrote in message
news:ckTVa.3289$.. .
>
> If you must validate, RXP/LT might be only choice for C, I'm not

absolutely
> sure... check
> http://www.xmlsoftware.com/parsers.html
> for example.
>
> You might also give a try to Parsifal if you don't need validation and can
> live with UTF-8/latin characters, API is somewhat easier to use than

Expat.
> JUdge for yourself.
>
> Toni Uusitalo
>
>


silly me, I forgot libxml! That must be the most active and forked XML api
for C.

Toni Uusitalo


 
Reply With Quote
 
 
 
Reply

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
Want help on how we convert output to tabular format Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. sharan XML 1 10-26-2007 01:20 PM
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. Want a c program on that! sharan XML 1 10-26-2007 07:56 AM
xml.parsers.expat loading xml into a dict and whitespace kaens Python 6 05-23-2007 11:44 AM
Re: xml.parsers.expat loading xml into a dict and whitespace kaens Python 0 05-23-2007 06:15 AM
xml.parsers.expat vs. xml.sax Thomas Guettler Python 2 04-27-2004 06:34 PM



Advertisments