I have the following XML
<?xml version="1.0" encoding="UTF-8"?>
<xmlarchivefieldlist archive_schema="47800727">
<client key_id="47800731" str_label="Customer" str_type="select" invoice="1"/>
<brand key_id="47800734" str_label="BrandName" str_type="text" invoice="2"/>
<product key_id="47800730" str_label="Product" str_type="text" invoice="3"/>
</xmlarchivefieldlist>
I have the document in an XDocument.
How do I find the Element name when I know only an Attribute value.
e.g. I know str_label="Customer" so I want returned:- client. e.g. I know str_type="text" so I want returned:- brand, product.