|
-
Feb 25th, 2010, 11:15 PM
#1
Thread Starter
Fanatic Member
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!
-
Feb 26th, 2010, 04:06 PM
#2
Frenzied Member
Re: Search xml file nodes/attributes matching a query
ScottGu has a great tutorial on LINQ to xml here
-
Feb 26th, 2010, 05:57 PM
#3
Thread Starter
Fanatic Member
Re: Search xml file nodes/attributes matching a query
Thanks for the great tutorial Dean .
-
Feb 27th, 2010, 01:40 PM
#4
Frenzied Member
Re: Search xml file nodes/attributes matching a query
Your welcome, Scott did a great job with that article
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|