parser(_:foundIgnorableWhitespace:)
Reported by a parser object to provide its delegate with a string representing all or part of the ignorable whitespace characters of the current element.
Declaration
optional func parser(_ parser: XMLParser, foundIgnorableWhitespace whitespaceString: String)Parameters
- parser:
A parser object.
- whitespaceString:
A string representing all or part of the ignorable whitespace characters of the current element.
Discussion
All the whitespace characters of the element (including carriage returns, tabs, and new-line characters) may not be provided through an individual invocation of this method. The parser may send the delegate several parser(_:foundIgnorableWhitespace:) messages to report the whitespace characters of an element. You should append the characters in each invocation to the current accumulation of characters.
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(_:foundProcessingInstructionWithTarget:data:)parser(_:foundComment:)parser(_:foundCDATA:)