text(withStringValue:)
Returns an NSXMLNode object representing a text node with specified content.
Declaration
class func text(withStringValue stringValue: String) -> AnyParameters
- 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
init(kind:)init(kind:options:)document()document(withRootElement:)element(withName:)element(withName:children:attributes:)element(withName:stringValue:)element(withName:uri:)attribute(withName:stringValue:)attribute(withName:uri:stringValue:)comment(withStringValue:)namespace(withName:stringValue:)dtdNode(withXMLString:)predefinedNamespace(forPrefix:)processingInstruction(withName:stringValue:)