Subject:Filtering 1000's of XML files for subsequent processing Author:Richard Potts Date:30 Nov 2007 04:29 AM
Hi guys
I've got thousands of XML files, that I wish to search for a particular strings/ tags/ tagvalues/attribute values pattern(s)
So I've had a quick look at 'desktop search' applications but these are fine for finding existence of string 'anywhere' in particular file. But some of my queries are a little more complex as I want to check on the relative location of text/values, tags in a file.
Eg.. show me all files that contain "<tagA>"
AND
Contains <tagB>ValueX </tagB> that occurs as a child of <tagC>ValueY</tagc>
The files I match on I want to be able to copy to a new directory for subsequent processing by another application.
I have been thinking of writing an application in which I can test each file with a series of xpath queries but before doing so I wanted to check if I'd missed a trick or not that Stylus Studio could easily do for me? I've got Stylus Studio Enterprise 2006 Release 3. Or you know of any 'off the self' packages?