xmlTreeGetParent

 

SYNOPSIS

xmlNode xmlTreeGetParent(xmlNode node)

Parameters:

  • node - the xmlNode to get the parent of

Returns:

  • the parent of node


DESCRIPTION
xmlTreeGetParent() returns the parent of the node node. If this is used on one of the top-level nodes (such as the root element or a comment outside of the XML tree), then the xmlDoc will be returned.


EXAMPLE

<$parent = (xmlTreeGetParent($node))>


SEE ALSO
xmlTreeGetChildren, xmlTreeGetFirstChild, xmlTreeGetNext, xmlTreeGetPrevious


Copyright © Thunderstone Software     Last updated: Sep 25 2019
Copyright © 2019 Thunderstone Software LLC. All rights reserved.