Initializer

init(contentsOf:)

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

Declaration

convenience init?(contentsOf url: URL)

Parameters

url

An NSURL object specifying a URL. The URL must be fully qualified and refer to a scheme that is supported by the NSURL class.

Return Value

An initialized NSXMLParser object or nil if an error occurs.

See Also

Initializing a Parser Object

init(data: Data)

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

init(stream: InputStream)

Initializes a parser with the XML contents from the specified stream and parses it..