parser(_:didStartMappingPrefix:toURI:)
Sent by a parser object to its delegate the first time it encounters a given namespace prefix, which is mapped to a URI.
Declaration
optional func parser(_ parser: XMLParser, didStartMappingPrefix prefix: String, toURI namespaceURI: String)Parameters
- parser:
A parser object.
- prefix:
A string that is a namespace prefix.
- namespaceURI:
A string that specifies a namespace URI.
Discussion
The parser object sends this message only when namespace-prefix reporting is turned on through the shouldReportNamespacePrefixes method.
See Also
Handling XML
parserDidStartDocument(_:)parserDidEndDocument(_:)parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)parser(_:didEndElement:namespaceURI:qualifiedName:)parser(_:didEndMappingPrefix:)parser(_:resolveExternalEntityName:systemID:)parser(_:parseErrorOccurred:)parser(_:validationErrorOccurred:)parser(_:foundCharacters:)parser(_:foundIgnorableWhitespace:)parser(_:foundProcessingInstructionWithTarget:data:)parser(_:foundComment:)parser(_:foundCDATA:)