You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Co-op DI <Co...@crt.xerox.com> on 2001/07/11 19:02:22 UTC

problem regarding DOMPrint

Hi ,
I am trying to work with the example DOMPrint given in the samples
directory. The problem that I am haiving is that ... I am trying to print
out the output in a FILE insted of printing it out on the CONSOLE. I am
opening and closing the file properly but the output prints out on the
CONSOLE agian instead of printing to the FILE.
Instead of this line:-              cout << doc << endl;

I am trying to write this piece of code but it prints out to the CONSOLE
instead of writing to the file :-  

ofstream outputfile;
outputfile.open("/tilde/lpcoop/temp.txt",ios::out);
outputfile << doc << endl; 
outputfile.close();

Please tell me what the problem is ?? If i try to write a normal string to
the outputfile like  outputfile << "hello"; ...... it writes that to the
file.

Please reply back..
thank you very much.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org