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

<s v="2"/>

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.

John Fleck
jfleck inkstain net (h) jfleck abqjournal com (w)

"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]