Contents

text(withStringValue:)

Returns an NSXMLNode object representing a text node with specified content.

Declaration

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

Parameters

  • stringValue:

    A string that is the textual content of the node.

Return Value

An NSXMLNode object of kind XMLNode.Kind.text initialized with the textual value or nil if the object couldn’t be created.

See Also

Creating and Initializing Node Objects