[xml] Question on recursive xmlCopyNode
- From: Boris Erdmann <b erdmann 4commerce de>
- To: <xml gnome org>
- Subject: [xml] Question on recursive xmlCopyNode
- Date: Fri, 01 Mar 2002 21:06:52 +0100
Hi,
consider the following document:
<root xmlns:pr="uri"><a><pr:b><c pr:attr="val"/></b></a></root>
If i do a recursive xmlCopyNode or xmlDocCopyNode of
lets say <a>, then it works like a charm:
children->children->properties->ns of <a>'s copy is not null.
Even <a>'s copy has a valid nsDef.
In contrast with this document
<root xmlns:pr="uri"><a><b><c pr:attr="val"/></b></a></root>
<b> is prefix-less. Then after doing the recursive copy on <a>
children->children->properties->ns of <a>'s copy *is* null.
No nsDef on <a>'s copy can be found.
Is this behaviour intended?
Boris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]