The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
XElement Explicit Conversion (XElement to String)
This API is not CLS-compliant.
public static explicit operator string (
If the XElement has children, the concatenated string value of all of the element's text and descendant's text is returned.
The following example creates an element with string content. It then retrieves the value by casting to String.
XElement root = XElement.Parse("<Root>abc <b>def </b>ghi</Root>");
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
(1500 characters remaining)
Thank you for your feedback