Description of problem: xmlDOMWrapCloneNode discards namespace of the @node parameter. I am attaching small reproducer. And git bisect shows that this has been fixed in upstream since: 978039bbd89fa2daada209e270524d20c9e3ca7e Version-Release number of selected component (if applicable): libxml2-2.6.26-2.1.21.el5 How reproducible: deterministic Steps to Reproduce: 1. Run attached reproducer 2. 3. Actual results: Reproducer fails. And resulting document is exported without namespace. Expected results: Reproducer passes. And resulting document has the same Additional info:
Created attachment 658813 [details] reproducer.xml This is an input XML file for the reproducer. Note that Benchmark element within the file is in the 'xccdf' namespace
Created attachment 658814 [details] reproducer.c
Okay, patches backports easilly, so technically that should not be a problem ! Daniel
Build libxml2-2.6.26-2.1.22.el5 includes the fix, Daniel