I have an XML file that looks something like this
In the real file there are more attributes. I have managed to extract the complete Element with ParentRef = "0" using a Linq example I found on this site. Is it possible to extract a list of attributes from an Element in one hit using Linq (for instance the Name and Ref in this example) or do I have to process the Element I have extracted to get the information I want?
Code:
<MyXML> <Stuff IDX="1" Name="Swish" Manufacturer="Grimoto" ParentRef = "0" Ref = "1234567" /> : More elements : More elements <Stuff IDX="0" Name="Swosh" Manufacturer="Grimoto" ParentRef = 1234567" Ref = "9876543" /> : More elements : More elements </IDX> </IDX> <MyXML>
Comment