Contents

init(xmlString:options:)

Initializes and returns an NSXMLDocument object created from a string containing XML markup text.

Declaration

convenience init(xmlString string: String, options mask: XMLNode.Options = []) throws

Parameters

  • string:

    A string object containing XML markup text.

  • 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

The encoding of the document is set to UTF-8.

See Also

Initializing NSXMLDocument Objects