xmlTreeNewText

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: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.