Search xml file nodes/attributes matching a query
Hello,
I guess the title explains my situation. I have a xml file with this structure:
<books>
<author>author 1
<title>title 1
<notes date/time "date&time">notes 1
</notes>
</title>
</author>
<author>author 2
<title>title 2
<notes date/time "date&time">notes 2
</notes>
</title>
</author>
</books>
I would to search the xml file to see which node/attribute matches a query. For example, if I were to search for "will", the search would return the tag or tags that have the word/phrase in it's attribute/inner text.
I have really basic idea of how to read xml.
Thanks in advance!
Re: Search xml file nodes/attributes matching a query
ScottGu has a great tutorial on LINQ to xml here
Re: Search xml file nodes/attributes matching a query
Thanks for the great tutorial Dean :D.
Re: Search xml file nodes/attributes matching a query
Your welcome, Scott did a great job with that article :)