SYNOPSISxmlNode xmlTreeNewText(xmlNode parent, string content)
Parameters:
parent - the xmlNode that will be the parent of
the new text nodecontent - the text content of the new text node
Returns:
xmlNode for the new text node
DESCRIPTIONxmlTreeNewText() creates a new text node as a child of
parent.
This level of control is usually not required for adding text to the
XML data. It usually is recommended to use xmlTreeAddContent()
or xmlTreeSetContent() instead.
EXAMPLE<$text = (xmlTreeNewText($parent, 'This is a text node.'))>
SEE ALSOxmlTreeNewElement,
xmlTreeNewPI,
xmlTreeNewCDATA,
xmlTreeNewComment