473,395 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

IDeserializationCallback and XmlSerializer

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.

Thanks in advance.
Nov 11 '05 #1
4 4080
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.

---------




"Steve C." <st***@no.spam.net> wrote in message
news:0a****************************@phx.gbl...
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.

Thanks in advance.


Nov 11 '05 #2
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

"Steve C." <st***@no.spam.net> wrote in message
news:0a****************************@phx.gbl...
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.

Thanks in advance.

Nov 11 '05 #3
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
-----Original Message-----
The IDeserializationCallback is only used by the runtime serializers, i.e.the SoapFormatter and the BinaryFormatter. There isn't really any counterpart for the XmlSerializer.

What are you trying to accomplish, maybe I can suggest a work-around.
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

"Steve C." <st***@no.spam.net> wrote in message
news:0a****************************@phx.gbl...
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.

Thanks in advance.

.

Nov 11 '05 #4
Steve,

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

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

"Steve C." <st***@no.spam.net> wrote in message
news:14****************************@phx.gbl...
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
-----Original Message-----
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

"Steve C." <st***@no.spam.net> wrote in message
news:0a****************************@phx.gbl...
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.

Thanks in advance.

.

Nov 11 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stuart Robertson | last post by:
I am trying to find a solution that will allow me to use XmlSerializer to serialize/deserialize a collection of objects where a given object is shared between two or more other objects, and not...
1
by: Bluetears76 | last post by:
Hi I have a hirachy of classes which are Message(base), then FileMessage and ChatMessage (extended) I want to serialize the objects and when i am deserizaling i dont know if i am getting...
3
by: Anthony Bouch | last post by:
Hi I've been reading using the XmlSerializer with custom collections. I've discovered that when serializing a custom collection (a class that implements ICollection, IList etc.) the...
4
by: Andy Neilson | last post by:
I've run across a strange behaviour with XmlSerializer that I'm unable to explain. I came across this while trying to use XmlSerializer to deserialize from a the details of a SoapException. This...
3
by: Loui Mercieca | last post by:
Hi, I have created a class, named FormField , which basically contains two fields, name and value. I have set the tag before the class and the field is set as an XmlAttribute whil the name as...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
4
by: Steve Long | last post by:
Hello, I hope this is the right group to post this to. I'm trying to serialize a class I've written and I'd like to be able to serialze to both binary and xml formats. Binary serialization is...
0
by: William Stacey [MVP] | last post by:
Had a method that got some string info from mp3 tags in N files and serializes this class and deserializes at other side. Works ok except sometimes get chars that choke the XmlSerializer. After...
0
by: SStory | last post by:
In Jeffrey Richters article on Serialization--part 2 from MSDN 2002, he mentions that "IDeserializationCallback.....When this method is called, all objects have had their fields set. But there's...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.