init(stream:)
Initializes a parser with the XML contents from the specified stream and parses it.
Declaration
convenience init(stream: InputStream)Parameters
- stream:
The input stream. The content is incrementally loaded from the specified stream and parsed. The
NSXMLParserwill open the stream, and synchronously read from it without scheduling it.
Return Value
An initialized NSXMLParser object or nil if an error occurs.