XmlUtils Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Xml
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Static helper methods for working with XML.

public static class XmlUtils { }

Methods

Gets the inner XML of the specified element.

Gets the outer XML of the specified element.

Loads the XML document at the specified path and returns it as an instance of XDocument .

Loads the XML document at the specified path, which is then converted into an instance of T using the specified callback function.

Loads the XML document at specified path and returns it as an instance of XElement .

Loads the XML document at the specified path, which is then converted into an instance of T using the specified callback function.

Parses the specified xml into an instance of XDocument .

Parses the specified xml into an instance of XDocument , which is then converted into an instance of T using the specified callback function.

Parses the specified xml into an instance of XElement .

Parses the specified xml into an instance of XElement , which is then converted into an instance of T using the specified callback function.

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