processingInstruction(withName:stringValue:)
Returns an NSXMLNode object representing a processing instruction with a specified name and value.
Declaration
class func processingInstruction(withName name: String, stringValue: String) -> AnyParameters
- name:
A string that is the name of the processing instruction.
- stringValue:
A string that is the value of the processing instruction.
Return Value
An NSXMLNode object of kind XMLNode.Kind.processingInstruction or nil if the object couldn’t be created.
Discussion
The equivalent XML markup is <?``name value``?>.
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:)text(withStringValue:)comment(withStringValue:)namespace(withName:stringValue:)dtdNode(withXMLString:)predefinedNamespace(forPrefix:)