XmlUtils.ToString method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Xml
Assembly Skybrud.Essentials.dll

ToString(XDocument)

Static

Converts the specified document to an XML based string, maintaining the XML declaration of the document.

public static string ToString(XDocument document)

Parameters

document XDocument

The document to be converted.

Returns

An XML string representation of the document.