Returns an NSXMLDocument object initialized with a given root element.
Original signature is '+ (id)documentWithRootElement:(NSXMLElement *)element'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public static Id DocumentWithRootElement( NSXMLElement element )
Public Shared Function DocumentWithRootElement ( _ element As NSXMLElement _ ) As Id
public: static Id^ DocumentWithRootElement( NSXMLElement^ element )

- element (NSXMLElement)
- An NSXMLElement object representing an element.

An NSXMLDocument object initialized with the root element element or nil if the object couldn't be created.

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