Greetings.
I'm looking for a way to parse a number of XML files in a particular directory with ASP.NET (C#). I'd like to be able to return content from particular elements, but before that, need to find those that have a certain value between an element.
Example XML file 1:
<file>
<title>Title 1</title>
<someContent>Content</someContent>
<filter>filter</filter>
</file>
Example XML file 2:
<file>
<title>Title 2</title>
<someContent>Content</someContent>
<filter>filter, different filter</filter>
</file>
Example case 1:
Give me all XML that has a filter of 'filter'.
Example case 2:
Give me all XML that has a title of 'Title 1'.
Looking, it seems this should be possible with LINQ, but I've only seen examples on how to do this when there is one XML file, not when there are multiples, such as in this case.
I would prefer that this be done on the server-side, so that I can cache on that end.
Functionality from any version of the .NET Framework can be used.
Thanks!
~James