Jump to content

search in XML file


joecool2005

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...