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: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.