[xml] copyNode and attributes of XML_XINCLUDE_START



Hi Daniel, All,

one of the users of the Perl bindings has noticed that after 
clonning a subtree (using xmlCopyNode internally) the clonned  
XML_XINCLUDE_START (very useful BTW) nodes do not carry their 
original attributes (such as href and xpointer).

The attached patch for tree.c fixes this. I'm not sure if 
XML_XINCLUDE_END can ever carry properties; if not, safely remove 
the 2 corresponding lines from the patch.

Thanks in advance for considering the patch,
-- Petr

Attachment: libxml2_copyNode_xinclude.patch
Description: Text Data



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