Dima,

See answers below:

-----Original Message-----
>To your question about the final result ...
>At the end I would like to be able entering any! string into XML file and then 
>transform it into anything with XSL.

In this I would say you don't need to save a file! Create a StringReader and  
StreamSource from StringReader. You'll not be worried about encoding plus you 
save performance and avoid char to bytes - bytes to char conversions.


>Is it possible that the resulting XML file will be in utf-8 encoding or should 
>I check the encoding of each message and then create >xml file with the 
>original encoding  (as Joseph Kesselman proposed - thanks by the way :-) )?

The resulting XML could be always UTF8, but you need to check what the encoding 
of the message to do proper char to bytes conversion first. As I said before 
you don't need to worry, if you use StringReader

Pavel

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

Reply via email to