473,811 Members | 3,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Quick Question: Expat vs LT XML

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.
Jul 20 '05 #1
3 1974

"winderjj" <wi******@hotma il.com> wrote in message
news:cd******** *************** ***@posting.goo gle.com...
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
Jul 20 '05 #2

"Toni Uusitalo" <to************ *******@luukkud ot.com> wrote in message
news:ck******** *********@reade r1.news.jippii. net...

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
Jul 20 '05 #3
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!
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1715
by: Mike Brown | last post by:
Python 2.3 comes with its own version of Expat. setup.py says it is Expat 1.95.2, but the code in Modules/expat seems to actually be Expat 1.95.6. It's really 1.95.6, right? -- Mike
1
1561
by: Doug | last post by:
I am running solaris 7 on two machines. I compiled python 2.2.1 with expat parser on one machine. The python binary is located in /usr/local/bin and the libraries are located in /usr/local/lib. I was told that if I would tar up the /usr/local/lib/python2.2 directory from the one machine. I could transfer that and the binaries from /usr/local/bin to another machine running solaris 7 and all should be fine. Machine 1 acts as a hub for...
1
1621
by: Ingo Blank | last post by:
Hi, while 95% of my 'psycoed' applications run fine, it throws SIGSEGVs in conjunction with expat. Anybody noticed the same ? Python 2.3.2 (#4, Nov 13 2003, 02:10:49) on linux2 $ uname -a Linux euler 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon i386
2
3939
by: Thomas Guettler | last post by:
Hi! What are the difference between xml.parsers.expat and xml.sax? Up to now I used xml.sax.make_parser and subclass from ContentHandler. I think xml.sax.make_parser uses expat as default. Why should I want to use xml.parsers.expat?
3
1378
by: Ajay | last post by:
hi! I am trying to write an application, say myapp, which does some xml processing and then interacts with another application, say app2. App2 is in Python and i can't change it. The problem is that both my app and app2 must work on a pocket pc. I could write myapp in Python but the python WinCE release does not have the pyexpat parser and i cant find any other fast xml processor for a PDA. There is a python only processor but that is...
4
3745
by: alainpoint | last post by:
Hello, I use Elementtree to parse an elementary SVG file (in fact, it is one of the examples in the "SVG essentials" book). More precisely, it is the fig0201.svg file in the second chapter. The contents of the file are as follows (i hope it will be rendered correctly): <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="200" height="200">
1
1517
by: Sridhar | last post by:
HI, I am beginner to Expat and currently started learning. What I understood about Expat is Expat is freeware It is good XML Parser Provides C-API
2
3744
by: dwelch91 | last post by:
Hi, c.l.p.'ers- I am having a problem with the import of xml.parsers.expat that has gotten me completely stumped. I have two programs, one a PyQt program and one a command line (text) program that both eventually call the same code that imports xml.parsers.expat. Both give me different results... The code that gets called is (print statements have been added for debugging):
1
1884
by: vadlapatlahari | last post by:
Hi, I get the following error with Expat while configuring my application server. Can anyone suggest a solution? When i do an ldd, i get the following : $ldd Expat.so Expat.so needs: /usr/lib/libc.a(shr.o) Cannot find /unix --- Is there a problem here? /usr/lib/libcrypt.a(shr.o)
0
9730
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.