all groups > dotnet xml > september 2003 >
You're in the

dotnet xml

group:

IDeserializationCallback and XmlSerializer



IDeserializationCallback and XmlSerializer Steve C.
9/26/2003 11:52:59 AM
dotnet xml: Is there a way to utilize the IDeserializationCallback
interface with the standard XmlSerializer? It does not
appear to be supported in this context.

IDeserializationCallback works fine when used with the
binary or SOAP formatters. Should I assume that a custom
formatter is needed to support IDeserializationCallback
when producing non-SOAP XML?

Any insight would be appreciated.

Re: IDeserializationCallback and XmlSerializer name
9/27/2003 2:29:37 AM
Why don't you just write code?


It took me 3 File | delete "viruses"
on this group before I could see your very important question.


=======

If your first Computer had Windows on it,
or any other handicaps, apply for Telemarketing.

---------










[quoted text, click to view]
Re: IDeserializationCallback and XmlSerializer Steve C.
9/29/2003 9:02:04 PM
Christoph,

I wanted the same behavior of IDeserializationCallback
when deserializing non-SOAP XML files, namely, to call a
method when all child objects have been loaded.

Thanks,
Steve

[quoted text, click to view]
Re: IDeserializationCallback and XmlSerializer Christoph Schittko [MVP]
9/29/2003 10:06:58 PM
The IDeserializationCallback is only used by the runtime serializers, i.e.
the SoapFormatter and the BinaryFormatter. There isn't really any counter
part for the XmlSerializer.

What are you trying to accomplish, maybe I can suggest a work-around.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[quoted text, click to view]

Re: IDeserializationCallback and XmlSerializer Christoph Schittko [MVP]
9/30/2003 8:44:10 AM
Steve,

Unfortunately there is no way to implement this functionality with the
XmlSerializer.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[quoted text, click to view]

AddThis Social Bookmark Button