473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

libxml: Parsing XML Question?

I'm currently writing some C code that uses libxml. I've seen several
example of parsing xml when the xml are in files. However, I would like
to parse the xml from a char buffer. Currently I am creating xml
messages and passing it to a server and server response back with xml.
I am capturing this data into a buffer (type char) and dumpinging it
into an xml file (which I would like to keep for the sake of history).
However, instead trying parse this from the xml file I would like to
parse it directly from the buffer. Since it would seem redundant to have
to reload back into memory. Any help would be appreciated. Thanks in
advance.

-jlewis

Nov 14 '05 #1
5 2970
On Tue, 06 Jul 2004 18:14:12 -0400, jwang <jw*******@hotmail.com>
wrote:
I'm currently writing some C code that uses libxml. I've seen several
example of parsing xml when the xml are in files. However, I would like
to parse the xml from a char buffer. Currently I am creating xml
messages and passing it to a server and server response back with xml.
I am capturing this data into a buffer (type char) and dumpinging it
into an xml file (which I would like to keep for the sake of history).
However, instead trying parse this from the xml file I would like to
parse it directly from the buffer. Since it would seem redundant to have
to reload back into memory. Any help would be appreciated. Thanks in
advance.

-jlewis

Dude you need to get out of programming. You're just too lazy for it.
Every library that parses HTMl and XMl have basically the same
architecture. Be it libwww, expat, libxml, perl's LWP or other
languages versions. They all have API calls to parse text in memory.

It took me a whole ten minutes to find the following two links
http://xmlsoft.org/html/libxml-parse...#xmlParseChunk
http://xmlsoft.org/html/libxml-parse...xmlParseMemory

Face it you're just too dumb and too lazy to be a good programmer.
I suggest management.
The reply-to email address is ol********@yahoo.com.
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.
Nov 14 '05 #2
TLOlczyk wrote:
Face it you're just too dumb and too lazy to be a good programmer.
I suggest management.
And you are still too dumb to fix your signature. I suggest McDonalds.

The reply-to email address is ol********@yahoo.com.
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.


NR
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 14 '05 #3
TLOlczyk wrote:
On Tue, 06 Jul 2004 18:14:12 -0400, jwang <jw*******@hotmail.com>
wrote:
[snip]

Face it you're just too dumb and too lazy to be a good programmer.
I suggest management.
The reply-to email address is ol********@yahoo.com.
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.


Apparently, nowhere in his education did he take a course
in "How to Win Friends and Influence People."

What's the PhD in? "How to Lose Friends and Repel People?"
Nov 14 '05 #4
On Wed, 07 Jul 2004 12:24:13 GMT, dbtid <db***@dev.null.us> wrote:
Apparently, nowhere in his education did he take a course
in "How to Win Friends and Influence People."

What's the PhD in? "How to Lose Friends and Repel People?"


BTW I liked the way you ansered his question. So much clearer
then mine.
The reply-to email address is ol********@yahoo.com.
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.
Nov 14 '05 #5
On Wed, 07 Jul 2004 03:10:07 -0700, Noah Roberts
<nr******@dontemailme.invalid> wrote:
TLOlczyk wrote:
Face it you're just too dumb and too lazy to be a good programmer.
I suggest management.


And you are still too dumb to fix your signature. I suggest McDonalds.

What you fail to realise is that it is a subtle [1] trap to ferret out
the anal retentive twats. Makes killfiling them easier.

[1] Well not *that* subtle, to most people, but I suspect for you guys
it seems like Hannibal at Canae.

PS I see you did *so much* better at answering his question than I
did. Congats, you are a genius.
The reply-to email address is ol********@yahoo.com.
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.
Nov 14 '05 #6

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

Similar topics

0
by: Rutger Claes | last post by:
I'm trying to make sort of a simple template system using XML. Imagine the following xml code: <page> <header>...</header> <body> <title>My News</title> <?news to_list 10?> </body> </page>
2
by: Michael Hogan | last post by:
I want to pars a playlist file for three different varibles, so I can save them as mp3 files. I am using: strTEMPURL = GetUrlSource(Text1.Text) to put the entire .pls file into a strTEMPURL...
0
by: Joey Martin | last post by:
Couple questions when parsing using replace. I have the following text I am parsing: $650 Number of Bedrooms 3 Air Conditioning? Yes Original Ad SOUTH, 3BR, air, basement. $650. Call 278-4171....
2
by: Vegard Beider | last post by:
Hi. I am new to both C# and XML parsing. I simply want to find out if a node contains other nodes, and if it does i want to do something with it. How can i find out in a simple way that in the...
6
by: Tuomas Rannikko | last post by:
Hello, I'm currently writing a XML processor for the fun of it. There is something I don't understand in the spec though. I'm obviously missing something important. The spec states that both...
7
by: sbowman | last post by:
I have a completely lame string parsing question, but I need an answer fast and I know this is where to get it...I'm not completely familiar with the Len, Right, Left, and mid functions and I have...
4
by: igotyourdotnet | last post by:
I have a question. I'm reading a CSV file that is uploading to my SQL db, I'm parsing out the file line by line. I'm getting the values and putting them into an arrayList seperate by commas. The...
3
by: Bryan | last post by:
If I have the following string from a huge xml file: std::string s = "<input key1=\"v1\" key2=\"val4\" key3=\"test\" />"; I need to get the values associated with the keys out from this line....
4
by: cjl | last post by:
As a learning exercise, I am trying to write a web-based version of 'drawbot' in PHP. See: http://just.letterror.com/ltrwiki/DrawBot I am interested in hearing ideas about how to approach...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.