XML Parsing

M

minboymike

Hello Everyone,

I was wondering if anyone knows of a simple(r) way to parse an xml
document. The current way I have been parsing an xml doc in my code
has been reading the entire xml document into a buffer of an appropiate
size, then searching for hardcoded (begin/end) tags and then parsing
the data that way (through pointers) .

Instead of hardcoding, im looking for a more abstract means to do this.
So if any one knows of a library i could include/import and use in my
project, it would be a great help!

BTW, the code works great as it is, but i would like to use this XML
parser in other projects, without having to hardcode the specifics tags
im looking for. thanks in advance
 
S

santosh

minboymike said:
Hello Everyone,

I was wondering if anyone knows of a simple(r) way to parse an xml
document. The current way I have been parsing an xml doc in my code
has been reading the entire xml document into a buffer of an appropiate
size, then searching for hardcoded (begin/end) tags and then parsing
the data that way (through pointers) .

Instead of hardcoding, im looking for a more abstract means to do this.
So if any one knows of a library i could include/import and use in my
project, it would be a great help!

BTW, the code works great as it is, but i would like to use this XML
parser in other projects, without having to hardcode the specifics tags
im looking for. thanks in advance

This is not quite on topic for this newsgroup. There are a lot of high
quality XML parsers around. Try the following:

http://sourceforge.net/projects/expat/

Also try asking in comp.text.xml and microsoft.public.xml
 
V

void * clvrmnky()

minboymike said:
Hello Everyone,

I was wondering if anyone knows of a simple(r) way to parse an xml
document. The current way I have been parsing an xml doc in my code
has been reading the entire xml document into a buffer of an appropiate
size, then searching for hardcoded (begin/end) tags and then parsing
the data that way (through pointers) .

Instead of hardcoding, im looking for a more abstract means to do this.
So if any one knows of a library i could include/import and use in my
project, it would be a great help!

BTW, the code works great as it is, but i would like to use this XML
parser in other projects, without having to hardcode the specifics tags
im looking for. thanks in advance
Libxml2: The reader module is here:
<http://xmlsoft.org/html/libxml-xmlreader.html>
 
M

minboymike

Thanks guy, I researched EXPAT and that seems to fit my exact needs.
Actually implementing it and using it in my code is another issue, but
thanks for everyone's feedback.
 
M

minboymike

Thanks guys, I researched EXPAT and that seems to fit my exact needs.
Actually implementing it and using it in my code is another issue, but
thanks for everyone's feedback.
 

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,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top