XElementExtensions Class

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

Static class with various extension methods for XElement .

public static class XElementExtensions { }

Methods

Gets the first attribute matching the the specified name.

Gets the first attribute matching the the specified XPath expression.

Gets the first attribute matching the the specified XPath expression.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression. If a matching attribute isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of TResult representing the value of the first attribute matching the specified XPath expression. If a matching attribute isn't found (or doesn't have a value), the default value of TResult will be returned instead.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression. If a matching attribute isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression. If a matching attribute isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of TResult representing the value of the first attribute matching the specified XPath expression.

Gets the value of the attribute matching the specified name, or an empty string if name doesn't match any attributes.

Gets an instance of T representing the value of the attribute matching the specified name. If a matching attribute wasn't found, an empty string will be returned instead.

Gets an instance of T representing the value of the first attribute matching the specified name. If a matching attribute isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of T representing the value of the first attribute matching the specified name. If a matching attribute isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of TResult representing the value of the first attribute matching the specified name. If a matching attribute isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets the value of the attribute matching the specified XPath expression, or an empty string if expression doesn't match any attributes.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute wasn't found, an empty string will be returned instead.

Gets the value of the attribute matching the specified XPath expression, or an empty string if expression doesn't match any attributes.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute wasn't found, an empty string will be returned instead.

Gets an instance of bool representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of bool will be returned instead.

Gets an instance of bool representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of bool will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of T will be returned instead.

Gets an instance of bool representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of bool will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of bool representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of bool will be returned instead.

Gets an instance of bool representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of bool will be returned instead.

Gets an instance of bool representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of bool will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of Double representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of Double will be returned instead.

Gets an instance of Double representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of Double will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of T will be returned instead.

Gets an instance of Double representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Double will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of Double representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Double will be returned instead.

Gets an instance of Double representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Double will be returned instead.

Gets an instance of Double representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Double will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression. If the attribute value can't be converted, fallback is returned instead.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression.

Gets an instance of T representing the value of the first attribute matching the specified XPath expression. If the attribute value can't be converted, fallback is returned instead.

Gets an instance of T representing the value of the first attribute matching the specified name.

Gets an instance of T representing the value of the first attribute matching the specified name. If the attribute value can't be converted, fallback is returned instead.

Gets an instance of int representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of int will be returned instead.

Gets an instance of int representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of int will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of T will be returned instead.

Gets an instance of int representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of int will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of int representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of int will be returned instead.

Gets an instance of int representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of int will be returned instead.

Gets an instance of int representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of int will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of long representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of long will be returned instead.

Gets an instance of long representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of long will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of T will be returned instead.

Gets an instance of long representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of long will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of long representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of long will be returned instead.

Gets an instance of long representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of long will be returned instead.

Gets an instance of long representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of long will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of Single representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of Single will be returned instead.

Gets an instance of Single representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of Single will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified name. If a matching attribute ins't found, the default value of T will be returned instead.

Gets an instance of Single representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Single will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets an instance of Single representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Single will be returned instead.

Gets an instance of Single representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Single will be returned instead.

Gets an instance of Single representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found, the default value of Single will be returned instead.

Gets an instance of T representing the value of the attribute matching the specified XPath expression. If a matching attribute ins't found found, the default value of T will be returned instead.

Gets the first XElement matching the specified name.

Gets the first XElement matching the specified name and parses it using callback.

Gets the first XElement matching the specified expression.

Gets the first XElement matching the specified expression and parses it using callback.

Gets the first XElement matching the specified expression.

Gets the first XElement matching the specified expression and parses it using callback.

Gets an instance of T representing the first element matching the specified XPath expression.

Gets an array of XElement matching the specified name.

Gets an array of XElement matching the specified name and parses each element using callback.

Gets an array of XElement matching the specified expression.

Gets an array of XElement matching the specified expression.

Gets an array of XElement matching the specified expression and parses each element using callback.

Gets an array of XElement matching the specified expression and parses each element using callback.

Gets an array of T representing the elelement matching the specified XPath expression.

Gets an array of T representing the elelement matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression. If a matching element isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of TResult representing the value of the first element matching the specified XPath expression. If a matching element isn't found (or doesn't have a value), the default value of TResult will be returned instead.

Gets an instance of T representing the value of the first element matching the specified XPath expression. If a matching element isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of T representing the value of the first element matching the specified XPath expression. If a matching element isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of T representing the value of the first element matching the specified XPath expression. If a matching element isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of TResult representing the value of the first element matching the specified XPath expression.

Gets the value of the element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets the value as an instance of T of the first element matching the specified name. If the element isn't found (or doesn't have a value), T will be returned instead.

Gets an instance of T representing the value of the first element matching the specified name. If a matching element isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets an instance of TResult representing the value of the first element matching the specified name. If a matching element isn't found (or doesn't have a value), the default value of T will be returned instead.

Gets the element value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets the element value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a boolean value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a boolean value representing the value of the first element matching the specified XPath expression.

Gets a boolean value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a boolean value representing the value of the first element matching the specified name.

Gets a boolean value representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets a double value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a double value representing the value of the first element matching the specified XPath expression.

Gets a double value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a double value representing the value of the first element matching the specified name.

Gets a double value representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression. If the element value can't be converted, fallback is returned instead.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression. If the element value can't be converted, fallback is returned instead.

Gets an instance of T representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name. If the element value can't be converted, fallback is returned instead.

Gets a float value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a float value representing the value of the first element matching the specified XPath expression.

Gets a float value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a float value representing the value of the first element matching the specified name.

Gets a float value representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets an integer value representing the value of the first element matching the specified XPath expression.

Gets an integer value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets an integer value representing the value of the first element matching the specified name.

Gets an integer value representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets an integer value representing the value of the first element matching the specified XPath expression.

Gets a long value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a long value representing the value of the first element matching the specified XPath expression.

Gets a long value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a long value representing the value of the first element matching the specified name.

Gets a long value representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets a float value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a float value representing the value of the first element matching the specified XPath expression.

Gets a float value representing the value of the first element matching the specified XPath expression.

Gets an instance of T representing the value of the first element matching the specified XPath expression.

Gets a float value representing the value of the first element matching the specified name.

Gets a float value representing the value of the first element matching the specified name.

Gets an instance of T representing the value of the first element matching the specified name.

Gets the inner XML of the specified element.

Gets the outer XML of the specified element.

Gets whether the first element matching the specified name has a value.

Gets whether the first element matching the specified XPath expression has a value.

Gets whether the first element matching the specified XPath expression has a value.