Contents

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

Related Documentation

  • Event-Driven XML Programming Guide

Initializing a Parser Object