Newbie: What XML to use?

R

rjm12

Hi All,

I am new to XML, and have a few questions. First here is what I am
trying to do. I have a Debian based Embedded Linux system, which I
would like to use XML config files. These files will be parsed and
action taken. These files are only about 10K large, and I have 16M of
RAM. All coding is done in "C".

1.) Which library should I use, libxml or libxml2? What is the
difference, libxml seems smaller?
2.) DOM or SAX? It seems as if my files are small enough to use DOM.

I have found some "C" examples using DOM, but I am having trouble
finding "C" examples using SAX.

Any help would be appreciated.

Thanks,

Rob
 
J

J??rgen Kahrs

1.) Which library should I use, libxml or libxml2? What is the
difference, libxml seems smaller?

The APIs of both differ. See the doc.
You should at least consider Expat.
But libxml is probably more comfortable if you
have enough memory.
I have found some "C" examples using DOM, but I am having trouble
finding "C" examples using SAX.

Expat comes with a few short examples in the SAX style.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top