Page 1 of 1

How to make request on many separated xml files ?

Posted: Tue Feb 07, 2006 11:05 am
by trungsg
Hi all,
any one know how to make a request (XPath for example) on many separated xml files ? Because my data is a set of separated xml files.

Thanks for answer !!!!

Posted: Tue Feb 07, 2006 11:19 am
by patrikG
what do you mean by "making a request"? pulling a specific node from the XML?

Posted: Wed Feb 08, 2006 3:38 am
by trungsg
example : i want to find out all <book> nodes that have price > 30 usd (but the data is store in many different xml files, whole these files have the same dtd), so i have to make something like XQuery or XPath but how to do with many xml files (not only on one file).

Posted: Wed Feb 08, 2006 6:36 am
by phpScott
open the first file, search for the data you need, pull out the data you need, close the file, open the next, repeat until no more files.