|
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: Mon Feb 18 10:28:15 EST 2013
|