|
SYNOPSIS
xmlNode xmlTreeNewText(xmlNode parent, string content)
Parameters:
-
parent - the xmlNode that will be the parent of
the new text node -
content - the text content of the new text node
Returns:
- the
xmlNode for the new text node
DESCRIPTION
xmlTreeNewText() 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 ALSO
xmlTreeNewElement,
xmlTreeNewPI,
xmlTreeNewCDATA,
xmlTreeNewComment
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013
|