parser(_:foundProcessingInstructionWithTarget:data:)
Sent by a parser object to its delegate when it encounters a processing instruction.
Declaration
optional func parser(_ parser: XMLParser, foundProcessingInstructionWithTarget target: String, data: String?)Parameters
- parser:
A parser object.
- target:
A string representing the target of a processing instruction.
- data:
A string representing the data for a processing instruction.
See Also
Handling XML
parserDidStartDocument(_:)parserDidEndDocument(_:)parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)parser(_:didEndElement:namespaceURI:qualifiedName:)parser(_:didStartMappingPrefix:toURI:)parser(_:didEndMappingPrefix:)parser(_:resolveExternalEntityName:systemID:)parser(_:parseErrorOccurred:)parser(_:validationErrorOccurred:)parser(_:foundCharacters:)parser(_:foundIgnorableWhitespace:)parser(_:foundComment:)parser(_:foundCDATA:)