Re: [xml] how to get xml as a text?



On Sat, 2003-05-10 at 06:57, Hubert Sokołowski wrote:
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;


The white space after "<send>" is a text node.

Cheers,
John
-- 
John Fleck
jfleck inkstain net (h) jfleck abqjournal com (w)
http://www.inkstain.net http://www.abqjournal.com
http://www.gnome.org/learn/users-guide/latest/

"Not only isn't reality real - it's an illusion created by unreal people to
sell real people unnecesary cars." - Griffy




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]