[xml] xmlNodeDump and namespace definitions



Hi everyone,

I've noticed an issue with xmlNodeDump. as the needed namespace definitions are 
not dumped. I've reported a bug
(https://bugzilla.gnome.org/show_bug.cgi?id=639036)
with a proposed patch but I've received no comments.

Example:
<test xmlns:foo="http://bar.com/";>
<child1/>
<child2 foo:attr="value"/>
</test>

If xmlNodeDump is invoked on child2 the result is
<child2 foo:attr="value"/>
The expected result should be
<child2 xmlns:foo="http://bar.com/"; foo:attr="value"/>

Is this really a bug or a feature? Is the patch ok? I'm willing to improve it 
of course.

Regards,
Alessandro Pignotti

Attachment: signature.asc
Description: This is a digitally signed message part.



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