473,395 Members | 1,949 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.

XML object serialization and events

Hi There.

I'm working on a application with a multiple level object structure.
Object type "Cproject" holds an arraylist of "Csystem".

A "Csystem" contain custom events i listen for in "Cproject"
When i add items to the lists of "Csystem" i also add eventhandlers for the above events.

When the object structure is serialized to an xml-file, and then deserialized, my event handlers are lost, since at the deserialization of "Cproject", Objects in the arrays are not yet deserialized, and thus , i cannot add an event handler for the events.

I do not know if i make myself clear...

any ideas?
Jul 29 '09 #1
2 1808
tlhintoq
3,525 Expert 2GB
So what is your question?
any ideas?
When you are done with all of your deserialization, and you do have all your objects... link the event handlers.
Jul 29 '09 #2
Thanks, I have done that, but I was kind of hoping there was something more elegant built in into the serialization functions...
Jul 29 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sabyasachi Basu | last post by:
Most C++ object serialization techniques are intrusive, that is they require all serializable classes need to have functions to stream in and stream out their contents. I came across...
12
by: Nimmi Srivastav | last post by:
Are there any design patterns for object serialization/deserialization in C++? Where can I find information pertaining to them? Can someone post some real coding examples please? I have a need...
7
by: Bryan D. | last post by:
Our application makes extensive use of C#'s event handling mechanism to communicate between classes. A problem has cropped in that it becomes difficult to know for sure that all observers of an...
1
by: Julia | last post by:
I am getting some obsolete warning when using XslTransform has any one have an example of loading XSL from memory and run it on an XML generated by object serialization? Thanks in advance
1
by: Jeff Louie | last post by:
In a caffeine inspired frenzy I have added printing and object serialization support to my sample C# Windows Form drawing program. http://www.geocities.com/jeff_louie/OOP/oop21.htm...
1
by: Marja Ribbers-de Vroed | last post by:
I'm using classic ASP with VBscript and I would like to have a facility for XML object serialization, just like the Serializer object that is available in ASP.NET. Is there such a thing for classic...
2
by: V | last post by:
Hi, I am trying to ascertain if Object Serialization (binary or xml) has been improved (new classes, or new ways) from version 1.1 of the .net framework. I pretty much know how to do that in...
0
by: Igor | last post by:
Hi everyone ! I have a problem with object serialization. I created web service with number of methods. One of them receives object of the next type: public class ObjectClass private szValue...
2
by: Ed Sutton | last post by:
Is there an attribute I can add to a public get/set property to prevent serialization? I am using auto-generated object serialization for a custom type in my webs service. Thanks in advance...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.