SunQuest
 
           Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old March 11th, 2003, 12:06 AM
benos benos is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 233 benos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Article Dicussion: XML Serialization in ASP.NET

If you have any questions or comments about this article please post them here.

This forum post relates to this article

Reply With Quote
  #2  
Old May 13th, 2003, 05:44 PM
gmakulik gmakulik is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 1 gmakulik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Hmmm ...

... found XmlSerializer pretty cool at the 1st look as well, BUT:
The hard part comes when the classes you want to serialize are composed from complex types, and even worse, if these are coming from referenced libraries.
XmlSerializer construction exceptions (like IO/exception cannot load library 1bj3fh.dll, mumble, mumble) are hard to debug :-(.
In my environment I'm using complex object graphs, that cross reference subsystems of the entire (3-tier) application system.
Unfortunately I noticed as well, that XmlSerializer provides no
useful overriding of control of XML-serialization and formatting when inheriting your own serializer class.
Actually I'm considering using wrapper classes, specially designed for serialization of my complex objects (of course those can be serialized using XmlSerializer then). The wrapper could drill down the object graph to primitive types and sequences.
As well I have the problem to distinguish referenced from embedded objects. When working in memory they behave the same way, as object instances. But when serializing them, I don't want to follow the object graphs of referenced objects, they can be identified with a unique (persistent) ID.
Another choice would be DataTransferObject/Assembler pair, but writing (serializable) DTOs is so stupid, may be xsd.exe is helpful with this task.

Just my 2˘,
Günther

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Dicussion: XML Serialization in ASP.NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway