Would be nice to bulish your file serialization code throgh this forum .



> ----------
> From:         Anthony Zawacki
> Reply To:     [EMAIL PROTECTED]
> Sent:         Thursday, July 12, 2001 12:13 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: problem regarding DOMPrint
> 
> Hello,
> 
> Your not doing anything wrong, and there is not any problem (depending on
> your perspective.)
> 
> If youlook at the DOMPrint example, you will see that it ignores the
> ostream it recieves, and uses a formatter in it's place that always output
> to std::out.  You will need to change and fix this to make it work the way
> you want it to.
> 
> We ended up writing our own serializer based on DOMPrint that uses the
> ostream properly, though I'm not sure we handle as much stuff as DOMPrint
> does (I don't think we handle unicode, or not nearly as elegantly, nor
> different encodings other than the local page.)
> 
> Anthony
> 
> 
> 
>  
> 
>                     Co-op DI
> 
>                     <[EMAIL PROTECTED]       To:
> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>     
>                     rox.com>             cc:
> 
>                                          Subject:     problem regarding
> DOMPrint                                   
>                     07/11/2001
> 
>                     01:02 PM
> 
>                     Please respond
> 
>                     to
> 
>                     xerces-c-dev
> 
>  
> 
>  
> 
> 
> 
> 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to