XmlUtils.ParseXmlElement method

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

ParseXmlElement(string)

Static

Parses the specified xml into an instance of XElement .

public static XElement ParseXmlElement(string xml)

Parameters

xml String

The XML to be parsed.

Returns

An instance of XElement .

ParseXmlElement<T>(string, Func<T, TResult>)

Static

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

public static T ParseXmlElement<T>(string xml, Func<T, TResult> callback)

Type Parameters

T

The type of the instance to be returned.

Parameters

xml String

The XML to be parsed.

callback Func<T, TResult>

The callback function used for converted the parsed XElement .

Returns

T

An instance of T representing the specified xml.