Re: [Monetdb-developers] MonetDB/XQuery: reading XML files from TAR archives

2009-08-27 Thread Djoerd Hiemstra
Hi Wouter, Sounds very useful to me! Why is it not simply changed in pf:add-doc(), or put in a new function pf:add-archive()? Best, Djoerd. Wouter Alink schreef: > Hello devs, > > Roberto and I yesterday discussed that it would be useful to be able > to load (compressed) XML collections directl

Re: [Monetdb-developers] MonetDB/XQuery: reading XML files from TAR archives

2009-08-27 Thread Wouter Alink
Hello Djoerd, Thanks for the feedback. One reason (that i can see) to do it from stdin is so that compression can be used (without having to be aware of it), for example: bzcat collection.tar.bz2 | mclient -lxq -C collection But I do agree with you that it would be useful to have an XQuery funct

[Monetdb-developers] MonetDB/XQuery: reading XML files from TAR archives

2009-08-27 Thread Wouter Alink
Hello devs, Roberto and I yesterday discussed that it would be useful to be able to load (compressed) XML collections directly into MonetDB/XQuery. The attached diff provides a new feature for loading multiple XML docs directly from tar files. Usage: "mclient -lxq -C " and pass a tarfile via stdin