init(name:uri:)
Returns an NSXMLElement object initialized with the specified name and URI.
Declaration
init(name: String, uri URI: String?)Parameters
- name:
A string that specifies the qualified name of the element.
- URI:
A string that specifies the namespace URI associated with the element.
Return Value
The initialized NSXMLElement object or nil if initialization did not succeed.
Discussion
You can look up the namespace prefix for this element node based on its URI using resolvePrefix(forNamespaceURI:). This method is the primary initializer for the NSXMLElement class.