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: Dec 10 2018
Copyright © 2019 Thunderstone Software LLC. All rights reserved.