views:

48

answers:

2

Hi, I have data in xml files (about 5000), need to search and filter this data. It would be wonderful if i can use Fuzzy Search. Suppose need use index? index of the attributes? what should I do use xml database, something like lucene? I prefer .net.

+1  A: 

For a recordset that small, you may find that XSLT meets your needs.

See here for an XSLT Tutorial.

RedFilter
XSLT will at least rationalise the data, but if this is a dynamic search you'll still need xpath or linq-to-xml to get your answers.
annakata
+1  A: 

Have you looked at LINQ to XML? Sounds like it would be perfect for this situation, allowing you to query the XML with a SQL-like syntax, and the performance shouldn't be too bad over ~5000 records.

Edit: Sorry, I misread the question—it appears you meant 5000 XML files, not 5000 records. Still might be worth a look though.

Mark B