xmlTreeAddContent

SYNOPSIS

xmlNode xmlTreeAddContent(xmlNode node, string content)

Parameters:

  • node - the xmlNode you want to add content to

  • content - the text content you want to add.

Returns:

  • the node


DESCRIPTION
xmlTreeAddContent() adds text to an xmlNode. If the xmlNode is an element and its last child is not a text node, one is created. Otherwise the content is appended to the last text node.


EXAMPLE

<$ret = (xmlTreeAddContent($node, '...all the way home.'))>


SEE ALSO
xmlTreeSetName, xmlTreeSetContent


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.