From: Kexiao L. <li...@cp...> - 2003-02-09 22:18:40
|
Dear XMLTK Team, I am trying to use following pipeline command to read "dblp.xml" file through xcat and then pipe the result to the xrun command. It seems that the current xrun can only support reading from specific file from the disk. Please look at the following command scripts. [liao@liao xmltk]$ xcat dblp.xml |xrun "//inproceedings[@key = 'conf/compsac/DaiA01']/*" Usage: xrun xpathExpr xmlfile I tried to modify the xrun.cpp source codes, to add some thing like that: IFileStream *pstm; pstm->SetFile(stdin); CreateFileStream(&IID_IFileStream, (void**)&pstm); However it does not work, I wonder if you could give me some suggestions about how to modify the xrun code so that it can support reading from both specific file and the pipe. Thank you for your help. Kexiao |