From: Makoto O. <on...@ac...> - 2003-02-10 15:14:27
|
Hi Kexiao, You are very right. The xrun has a very simple mistake. I will update the xrun in the CVS repository in one or two days, since I have some network issues. Thanks, makoto From: K LIAO <li...@cp...> Subject: [Xmltk-devs] Fix the problem of xrun(reading from the pipeline) Date: Sun, 9 Feb 2003 21:00:13 -0500 (EST) Message-ID: <Pin...@ns...> >Dear xmltk Team, > After reading the util.cpp and filestream.cpp source codes under lib >directory, I have figured out the problem of xrun(error message when reading >from the pipe instead of specific file). The cause of error message is the >following if statement in the main function of xrun.cpp file: >if(argc != 3) { >... >} > >I changed the above if statement to: > > >int main(int argc, char* argv[]){ > if (argc != 2 and argc != 3){ > cout << "Usage: " << argv[0] << " xpathExpr xmlfile" << endl; > return 1; > } > >The xrun can read from both specific file and the pipe. > >Kexiao |