Contents

comment(withStringValue:)

Returns an Xmlnode object representing a comment node containing given text.

Declaration

class func comment(withStringValue stringValue: String) -> Any

Parameters

  • stringValue:

    A string specifying the text of the comment. You may specify nil or an empty string (see Return Value).

Return Value

An XMLNode object representing an comment node (XMLNode.Kind.comment) containing the text stringValue or nil if the object couldn’t be created. If stringValue is nil or an empty string, a content-less comment node is returned (<!--->).

See Also

Creating and Initializing Node Objects