xmlTreeGetAllContent

 

SYNOPSIS

string xmlTreeGetAllContent(xmlNode node)

Parameters:

  • node - the xmlNode to get content from

Returns:

  • The text value of node and all children


DESCRIPTION
xmlTreeGetAllContent() gives the entire contents of this node and its children nodes (if they exist). This is in contrast to xmlTreeGetContent(), which only returns the text of the element, not its children.

xmlTreeGetAllContent() can be handy for things like HTML data:

<div>This has <i>emphasis</i> in its text.</div>

Calling xmlTreeGetAllContent() on the <div> will give you

This has emphasis in its text.

where as xmlTreeGetContent() would return

This has in its text.


EXAMPLE

<$content = (xmlTreeGetAllContent($node))>


SEE ALSO
xmlTreeDumpNode, xmlTreeGetName, xmlTreeGetContent, xmlTreeGetLine, xmlTreeGetType, xmlTreeIsBlankNode, xmlTreeGetAttributeContent


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