Parses an xml string.

public static XDocument ParseXml( 
string xml 
)

Parameters

xml

Type: string

A string containing well-formed xml.

Return Value

An xml document.