Initializes and returns an NSXMLDocument object created from a string containing XML markup text.
Original signature is '- (id)initWithXMLString:(NSString *)string options:(NSUInteger)mask error:(NSError **)error'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public NSXMLDocument( NSString string, NSUInteger mask, out NSError error )
Public Sub New ( _ string As NSString, _ mask As NSUInteger, _ <OutAttribute> ByRef error As NSError _ )
public: NSXMLDocument( NSString^ string, NSUInteger mask, [OutAttribute] NSError^% error )

- string (NSString)
- A string object containing XML markup text.
- mask (NSUInteger)
- 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.
- error (NSError%)
- An error object that, on return, identifies any parsing errors and warnings or connection problems.

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

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)