SYNOPSISxmlNode xmlTreeSetContent(xmlNode node, string content)
Parameters:
node
- the xmlNode
to set the content forcontent
- the text to set as the content of node
Returns:
node
DESCRIPTIONxmlTreeSetContent()
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 ALSOxmlTreeSetName
,
xmlTreeAddContent