xmlTreeCopyAttribute

SYNOPSIS

xmlNode xmlTreeCopyAttribute(xmlNode target,
                                 xmlNode attribute)

Parameters:

  • target - the element that will receive the attribute

  • attribute - the attribute to be copied

Returns:

  • the newly created attribute on target


DESCRIPTION
xmlTreeCopyAttribute() copies an attribute from its original location on to another node. It leaves the original attribute intact, creating a duplicate of it for placing on target.


EXAMPLE

<$newAttr = (xmlTreeCopyAttribute($target, $attr))>


SEE ALSO
xmlTreeCopyDoc, xmlTreeCopyNode, xmlTreeCopyNodeList, xmlTreeCopyAttribute, xmlTreeCopyAttributeList


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.