473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML Parsing

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

Mar 23 '06 #1
5 1949
minboymike wrote:
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

Mar 23 '06 #2
minboymike wrote:
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>
Mar 23 '06 #3
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.

Mar 23 '06 #4
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.

Mar 23 '06 #5
minboymike opined:
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.


Please provide context when replying to posts. Read:

<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

--
BR, Vladimir

The earth is like a tiny grain of sand, only much, much heavier.

Mar 24 '06 #6

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

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
16
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed...
0
by: Pentti | last post by:
Can anyone help to understand why re-parsing occurs on a remote database (using database links), even though we are using a prepared statement on the local database: Scenario: ======== We...
9
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics"...
5
by: randy | last post by:
Can some point me to a good example of parsing XML using C# 2.0? Thanks
3
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
7
by: Daniel Fetchinson | last post by:
Many times a more user friendly date format is convenient than the pure date and time. For example for a date that is yesterday I would like to see "yesterday" instead of the date itself. And for...
1
by: eyeore | last post by:
Hello everyone my String reverse code works but my professor wants me to use pop top push or Stack code and parsing code could you please teach me how to make this code work with pop top push or...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...
0
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...
0
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 ...

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.