Initializer

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 NSXMLParser will open the stream, and synchronously read from it without scheduling it.

Return Value

An initialized NSXMLParser object or nil if an error occurs.

See Also

Initializing a Parser Object

init?(contentsOf: URL)

Initializes a parser with the XML content referenced by the given URL.

init(data: Data)

Initializes a parser with the XML contents encapsulated in a given data object.