libxml: Parsing XML Question?

J

jwang

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
 
T

TLOlczyk

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-parser.html#xmlParseChunk
http://xmlsoft.org/html/libxml-parser.html#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 (e-mail address removed).
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.
 
N

Noah Roberts

TLOlczyk said:
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 (e-mail address removed).
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
 
D

dbtid

TLOlczyk said:
[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 (e-mail address removed).
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?"
 
T

TLOlczyk

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 (e-mail address removed).
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.
 
T

TLOlczyk

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 (e-mail address removed).
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.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top