Re: [xml] how to get xml as a text?
- From: Hubert Sokołowski <who_ami siedziba pl>
- To: xml gnome org
- Subject: Re: [xml] how to get xml as a text?
- Date: Sat, 10 May 2003 14:57:38 +0200 (CEST)
On Fri, 9 May 2003, Daniel Veillard wrote:
On Sat, May 10, 2003 at 12:08:43AM +0200, Hubert Soko?owski wrote:
I know how to parse this file, how to get attributes and text, but
I need to get "<s v='2'/>" as xmlChar*, I mean the whole content of a node
"send".
...
See xmlNodeDump() , you will have to build a buffer and get its content
value. See xmlElemDump() as an example.
thanks, it works. but I have one more question, I have xml
<send>
<s v="2"/>
</send>
and xmlNodePtr cur pointed to "<send>". to get to <s> tag I have to do
cur = cur->xmlChildrenNode;
/*here cur->name is set to "text"*/
cur = cur->next; /*cur is now pointed to <s*/
I don't understand why I have to do cur=cur->next;
thanks again
hubert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]