xmlTreeNewComment

 

SYNOPSIS

xmlNode xmlTreeNewComment(xmlNode parent, string content)

Parameters:

  • parent - the parent of the new comment node (can specify none with '')

  • content - the content of the new comment

Returns:

  • the xmlNode of the new comment


DESCRIPTION
xmlTreeNewComment() creates a new comment as a child of parent.


EXAMPLE

<$comment = (xmlTreeNewComment($parent, 'important!'))>

Will produce the following in output:

<!-- important! -->


SEE ALSO
xmlTreeNewElement, xmlTreeNewPI, xmlTreeNewText, xmlTreeNewCDATA


Copyright © Thunderstone Software     Last updated: Sep 25 2019
Copyright © 2019 Thunderstone Software LLC. All rights reserved.