namespace(forPrefix:)
Returns the namespace node with a specified prefix.
Declaration
func namespace(forPrefix name: String) -> XMLNode?Parameters
- name:
A string specifying a namespace prefix.
Return Value
An XMLNode object of kind XMLNode.Kind.namespace or nil if there is no namespace node with that prefix.