resolveNamespace(forName:)
Returns the namespace node with the prefix matching the given qualified name.
Declaration
func resolveNamespace(forName name: String) -> XMLNode?Parameters
- name:
A string that is the qualified name for a namespace (a qualified name is prefix plus local name).
Return Value
An XMLNode object of kind XMLNode.Kind.namespace or nil if there is no matching namespace node.
Discussion
The method looks in the entire namespace chain for the prefix.