I'm trying to run Xpath queries using etree, but I can't seem to figure out the Xpath syntax. Here's a (sanitized) section of my XML document. 1) Query using XML based on some value like the 'id' or ...
This is a good starting point: http://www.w3schools.com/Xpath/<BR><BR>But the short answer, it seems like you want to find the element at /trades/trade/tradeTypeA ...
Listing 1: Convert XPath into LINQ to XML: XML: Build a Basic Structure XML structures vary widely in arrangement, complexity, and whether the data is held in content or attributes.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results