resolvePrefix(forNamespaceURI:)
Returns the prefix associated with the specified URI.
Declaration
func resolvePrefix(forNamespaceURI namespaceURI: String) -> String?Parameters
- namespaceURI:
A string identifying the URI associated with the namespace.
Return Value
A string that is the matching prefix or nil if it finds no matching prefix.
Discussion
The method looks in the entire namespace chain for the URI.