parser(_:resolveExternalEntityName:systemID:)
Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID.
Declaration
optional func parser(_ parser: XMLParser, resolveExternalEntityName name: String, systemID: String?) -> Data?Parameters
- parser:
A parser object.
- name:
A string that specifies the external name of an entity.
- systemID:
A string that specifies the system ID for the external entity.
Return Value
An NSData object that contains the resolution of the given external entity.
Discussion
The delegate can resolve the external entity (for example, locating and reading an externally declared DTD) and provide the result to the parser object as an NSData object.
See Also
Related Documentation
parser(_:foundExternalEntityDeclarationWithName:publicID:systemID:)parser(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)
Handling XML
parserDidStartDocument(_:)parserDidEndDocument(_:)parser(_:didStartElement:namespaceURI:qualifiedName:attributes:)parser(_:didEndElement:namespaceURI:qualifiedName:)parser(_:didStartMappingPrefix:toURI:)parser(_:didEndMappingPrefix:)parser(_:parseErrorOccurred:)parser(_:validationErrorOccurred:)parser(_:foundCharacters:)parser(_:foundIgnorableWhitespace:)parser(_:foundProcessingInstructionWithTarget:data:)parser(_:foundComment:)parser(_:foundCDATA:)