Provides extension methods on the classes belonging to the LINQ XML API (
).
double | |
Returns the value of this attribute, converted to a double. If the conversion cannot succeed, throws an exception
describing which attribute was expected to be a double. |
XAttribute | |
Returns the first attribute of this element that has the specified local name (ignoring the namespace). |
IEnumerable<XAttribute> | |
Returns a filtered collection of attributes of this element. Only elements that have the specified local name
(ignoring the namespace) are included in the collection. |
XAttribute | |
Returns the first attribute matching "name", or if none, throws an exception to say which element was missing
which attribute. This is a counterpart to XElement.Attribute(XName). |
XElement | |
Returns the first element matching "name", or if none, throws an exception to say which element was missing which
sub-element. This is a counterpart to XContainer.Element(XName). |
XElement | ElementI(this XElement element, string name) |
Gets the first (in document order) child element with the specified local name (ignoring the namespace). |
IEnumerable<XElement> | ElementsI(this XContainer element, string name) |
Returns a filtered collection of the child elements of this element or document, in document order. Only elements
that have the specified local name (ignoring the namespace) are included in the collection. |
string | Path(this XContainer element) |
Returns the path to this element. The path consists of the names of all parents of this element up to the root
node, separated with forward slashes. |
string | Path(this XAttribute attribute) |
Returns the path of this attribute. The path consists of the [Unrecognized tag: "see"] of this attribute's
element, followed by attribute name in square brackets. |