Re: [xml] xmlCopyProp() / xmlCopyPropList() don't work properly
- From: "Oliver Stöneberg" <oliverst online de>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] xmlCopyProp() / xmlCopyPropList() don't work properly
- Date: Thu, 17 Jun 2004 01:52:52 +0200
On Wed, Jun 16, 2004 at 06:23:34PM +0200, Oliver Stöneberg wrote:
I want to copy a attribute list from one node to another. The
function xmlCopyPropList() did return a copy of the attributes, but
it didn't out them into the "target" node. "properties" was still
NULL.
Same for the function xmlCopyProp().
I tried it with libxml2-2.6.7 and libxml2-2.6.10 on MSVC and MinGW.
Both show the same behavior.
This is not a bug. The function says it copies the attribute(s)
inserting the results in the node attribute list is not part of the
function work.
So, what is that "target" xmlNodePtr parameter for? The docs says,
it's the node "where the attributes will be grafted". That sounds to
me like they are being copied over to the properties of the given
"target" xmlNodePtr.
If that's not the case, that parameter seems useless and should be
marked as deprecated or something like that in the docs IMO.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]