Objects aren't actually deleted in the
they're unlinked. This removes all references to the node from its
tree, which removes it from the output. The XML API takes care of the
deletion when necessary.
The object is not deleted until it is no longer accessible through any
Vortex variable, so an unlinked node is still fully accessible from
although things like
xmlTreeGetParent() will not behave as
before the unlinking.
</capture><$xmlRaw = $ret>
<$doc = (xmlTreeNewDocFromString( $xmlRaw, 'XML_PARSE_NOBLANKS'))>
<$root = (xmlTreeGetRootElement($doc))>
<$age = (xmlTreeGetChildren($root, 'age'))>
<$ret = (xmlTreeUnlinkNode($age))>
<$output = (xmlTreePrintDoc($doc, 'INDENT'))>
output is $output