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