joecool2005 Posted January 23, 2008 Report Share Posted January 23, 2008 Hi,I have a directory that have 50 000 XML file.All the files have a tag like this <name>John</name> I want to search a file that has a specific name(i.e. Mike) but I always get a script timeout because I have to loop on each file.Do you know a fast way to search inside the XML file? Link to comment Share on other sites More sharing options...
boen_robot Posted January 23, 2008 Report Share Posted January 23, 2008 To put it simple - no.You can use a stream based parser (I think that, like in PHP, it was named XMLReader) to keep memory low, but you still need to search every file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now