Grrr... No sooner do I send than have a thought...
XmlTextWriter myXmlTextWriter = new
XmlTextWriter("b2b_request_status.xml", System.Text.Encoding.UTF8);
Works a treat...
Cheers,
Dino
-----Original Message-----
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Dean Cleaver
Sent: Thursday, 2 May 2002 17:51
To: [EMAIL PROTECTED]
Subject: [DOTNET] More XMLSerialisation options...
Ok,
I gave up on the serialisation of classes, and went for the
XmlTextWriter approach - gave me a bit more control.
But there's one thing I can't seem to do - and that's set the first line
to be:
<?xml version="1.0" encoding="UTF-8"?>
I can only get the "<?xml version="1.0"?>" portion to come out, or with
the Standalone property as well. Any suggestions on where to look?
Cheers,
Dino
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.