Skip to content

SelectXElement Method ​

Definition ​

  • Namespace: JASE.Serializers
  • Assembly: JASE.Serializers.dll

XElement SelectXElement(XDocument doc, string select) ​

csharp
XElement SelectXElement(XDocument doc, string select)

Selects the first XElement that matches the specified XPath expression in the specified XDocument object.

Parameters ​

NameDescription
docThe XDocument object to search.
selectThe XPath expression to use for selecting the XElement.

Returns ​

The first XElement that matches the specified XPath expression, or null if no matching element is found.