|
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:
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: Mon Feb 18 10:28:15 EST 2013
|