Creates a new XDocument from a string, optionally preserving white space, setting the base URI, and retaining line information.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
The following example creates a string that contains XML. It then parses the string into an XDocument.