HighTechTalks DotNet Forums  

XmlDeserialize when object changes?

Dotnet XML microsoft.public.dotnet.xml


Discuss XmlDeserialize when object changes? in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default XmlDeserialize when object changes? - 04-08-2004 , 11:51 AM






I have an object that is being serialized via the XmlSerializer and
stored in a database in xml format. Since initial creation, some of
the properties of the object have changed (I have removed a few items
that were initially in this object and put them into a separate
object). The XmlDeserialize() method now is breaking, and my hunch is
because I have removed a few of the properties of the object? For
instance, there is data in the database that has an xml serialized
property like

<ReviewedById>
Some one
</ReviewedById>

However, this is one of the properties that has now moved to a
different object. Do I need to keep that property in this object in
order to not break it? I'd rather not, but I'm unclear how
xmlSerialization works when objects change over time. Can someone
clarify? Are my suspicions correct?

Thanks,

Bryan Ax

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.