Contents

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