Hi all,
I'm using the XmlDocument class to create an XML document. I found out that
in .NET there are special classes that they do that job a lot faster,
namelly XmlTextWritter. My problem is that using the XmlTextWritter the
encoding gets messed up.
How do I set the XmlTextWritter's ecncoding to be the same as the one that
the XmlDocument is using?
I've tried this but doesn't work.
System.IO.MemoryStream s = new System.IO.MemoryStream();
XmlTextWriter LWriter = new XmlTextWriter(s, Encoding.Unicode);
Thanks in advance,
Greg