Connecting Tech Pros Worldwide Forums | Help | Site Map

libxml: Parsing XML Question?

jwang
Guest
 
Posts: n/a
#1: Nov 14 '05
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


TLOlczyk
Guest
 
Posts: n/a
#2: Nov 14 '05

re: libxml: Parsing XML Question?


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.
Noah Roberts
Guest
 
Posts: n/a
#3: Nov 14 '05

re: libxml: Parsing XML Question?


TLOlczyk wrote:[color=blue]
> Face it you're just too dumb and too lazy to be a good programmer.
> I suggest management.[/color]

And you are still too dumb to fix your signature. I suggest McDonalds.[color=blue]
>
>
> 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.[/color]

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! =-----
dbtid
Guest
 
Posts: n/a
#4: Nov 14 '05

re: libxml: Parsing XML Question?


TLOlczyk wrote:
[color=blue]
> On Tue, 06 Jul 2004 18:14:12 -0400, jwang <jwang_940@hotmail.com>
> wrote:[/color]

[snip]
[color=blue]
>
> 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.[/color]

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?"
TLOlczyk
Guest
 
Posts: n/a
#5: Nov 14 '05

re: libxml: Parsing XML Question?


On Wed, 07 Jul 2004 12:24:13 GMT, dbtid <dbtid@dev.null.us> wrote:
[color=blue]
>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?"[/color]

BTW I liked the way you ansered his question. So much clearer
then mine.


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.
TLOlczyk
Guest
 
Posts: n/a
#6: Nov 14 '05

re: libxml: Parsing XML Question?


On Wed, 07 Jul 2004 03:10:07 -0700, Noah Roberts
<nroberts@dontemailme.invalid> wrote:
[color=blue]
>TLOlczyk wrote:[color=green]
>> Face it you're just too dumb and too lazy to be a good programmer.
>> I suggest management.[/color]
>
>And you are still too dumb to fix your signature. I suggest McDonalds.[color=green]
>>[/color][/color]
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 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.
Closed Thread