xmlTreeSetContent

SYNOPSIS

xmlNode xmlTreeSetContent(xmlNode node, string content)

Parameters:

  • node - the xmlNode to set the content for

  • content - the text to set as the content of node

Returns:

  • the node


DESCRIPTION
xmlTreeSetContent() sets the content of node to the string content.

Note that this replaces all text AND children of node with content. If you only want to replace the text, you'll need to browse to the element's text child and call xmlTreeSetContent() on that instead of on the element itself.


EXAMPLE

<$ret = (xmlTreeSetContent($node, 'new content'))>


SEE ALSO
xmlTreeSetName, xmlTreeAddContent


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.