On Tue, 06 Jul 2004 18:14:12 -0400, jwang <jwang_940@hotmail.com>
wrote:
[color=blue]
>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[/color]
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
olczyk2002@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.