1. your classes have to be public. There's no way around this. We've
received a lot of feedback about this requirement, though, and are
considering our options for future versions.
2. you can suppress these prefix definitions by passing an empty
XmlSerializerNamespaces class to the Serialize method.
Hope this helps
alex

-----Original Message-----
From: Dean Cleaver [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 01, 2002 3:06 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] XMLSerialisation options...

I was trying out the XML serialisation, and struck a few snags...

1. The classes you want serialised have to be public - but this isn't
really what I wanted for this project - I wanted to hide the
implementation from the "end user" of this component - is there any way
to avoid this?

2. The serialiser produced this:

<transaction xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
type="B2B_REQUEST_STATUS">

Where all I wanted was:

<transaction type="B2B_REQUEST_STATUS">

Is there a way to suppress the above attributes? I've looked in the
docs, but can't find anything...

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.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to