<complexType> <sequence> <element name="PropertyName" type="string" use="required" value="117 Executive Drive" /> <element name="PropertyID" type="string" use="required" value="2" /> <element name="BuildingInformation"> <complexType> </sequence> </complexType>
"/complexType/sequence/element[@value='117 Executive Drive']/@name"
XDocument xDoc = XDocument.Load("FullFileName.xml"); var qry = xDoc .Root .Descendants("element") .Where(n=>n.Attribute("value").Value=="117 Executive Drive") .Select(n=.n.Attribute("name").Value);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)