predefinedNamespace(forPrefix:)
Returns an NSXMLNode object representing one of the predefined namespaces with the specified prefix.
Declaration
class func predefinedNamespace(forPrefix name: String) -> XMLNode?Parameters
- name:
A string specifying a prefix for a predefined namespace, for example “xml”, “xs”, or “xsi”.
Return Value
An NSXMLNode object of kind XMLNode.Kind.namespace or nil if the object couldn’t be created. If something other than a predefined-namespace prefix is specified, the method returns nil.
See Also
Related Documentation
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:)processingInstruction(withName:stringValue:)