Returns the XML string representation of the receiver—that is, the entire document—encapsulated in a data object.
- macOS 10.4+
This method invokes
xml with an option of
NSXMLNode. The encoding used is based on the value returned from
character or UTF-8 if no valid encoding is returned by that method.