Re: [xml] xmlTextReaderExpand expanding more than just the subtree



Hi, 

-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On 
Behalf Of Michael Ransburg

[...]

I tried doing an xmlCopyNode of the node before expanding it 
and then setting the ->next to NULL but it lead to the same 
parsing errors (I expect that the "copy" of the node still 
references the same XMLTextReader memory structure).

[...]

Just an info about removing nodes: try using xmlUnlinkNode()
or have a look at its code in order to remove nodes from
the tree; setting ->next to NULL might not be enough.

http://www.xmlsoft.org/html/libxml-tree.html#xmlUnlinkNode

Regards,

Kasimier



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