From: K L. <li...@cp...> - 2003-02-10 02:00:16
|
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 |