Appearance
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
| Name | Description |
|---|---|
doc | The XDocument object to search. |
select | The 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.