Contents

init(contentsOf:options:)

Initializes and returns an NSXMLDocument object created from the XML or HTML contents of a URL-referenced source

Declaration

convenience init(contentsOf url: URL, options mask: XMLNode.Options = []) throws

Parameters

  • url:

    An Nsurl object specifying a URL source.

  • mask:

    A bit mask for input options. You can specify multiple options by bit-OR’ing them. See Constants for a list of valid input options.

Return Value

An initialized NSXMLDocument object, or nil if initialization fails because of parsing errors or other reasons.

Discussion

See Also

Related Documentation

  • Tree-Based XML Programming Guide

Initializing NSXMLDocument Objects