xpath - how to load multiple xml files with saxon -


i want use saxon xpath queries don't know load multiple xml files.

i'm trying use saxon command line windows

i read in saxon manual can use command:

query.exe -s:mydatafile.xml -q:myqueryfile -o:myoutputfile

but don't know how load multiple xml files , not one

edit: have many xml files mydatafile1.xml, mydatafile2.xml, mydatafile3.xml ... , want run query alla these files want load all files , query them (i don't want query every single file , concatenate results)

use standard xpath 2.0 function collection().

the documentation saxon-specific implementation of collection() here.

you can use standard xpath 2.x collection() function, as implemented in saxon 9.x

the saxon implementation allows search pattern used in string-uri argument of function, may able specify after path of directory pattern filename starting report_ having 2 other characters, ending .xml.

example:

this xpath expression:

collection('file:///c:/?select=report_*.xml') 

selects document nodes of every xml document resides in c:\ in file name starting report_ having 0 or more characters, ending .xml.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -