SYNOPSISxmlNode xmlTreeCopyAttribute(xmlNode target,
xmlNode attribute)
Parameters:
target
- the element that will receive the attributeattribute
- the attribute to be copied
Returns:
target
DESCRIPTIONxmlTreeCopyAttribute()
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 ALSOxmlTreeCopyDoc
,
xmlTreeCopyNode
,
xmlTreeCopyNodeList
,
xmlTreeCopyAttribute
,
xmlTreeCopyAttributeList