Re: [xml] Question on recursive xmlCopyNode
- From: Daniel Veillard <veillard redhat com>
- To: Boris Erdmann <b erdmann 4commerce de>
- Cc: xml gnome org
- Subject: Re: [xml] Question on recursive xmlCopyNode
- Date: Sat, 2 Mar 2002 09:52:33 -0500
On Fri, Mar 01, 2002 at 09:06:52PM +0100, Boris Erdmann wrote:
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?
Hum, no. Patch welcome if you come around finding the problem.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]