Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » XML Serialization
XML Serialization Fri, 24 June 2011 02:01 Go to previous message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
I was pondering the benefits of automated XML serialization, since derheld mentioned it on SF and since I need to implement it for some datastructures that don't have it yet.

To be honest, I like the manual construction of the XML documents that Dan devised and we are using. I feel it gives us control over their structure and content instead of relying in some unseen .Net rules.

And from what i've seen, the XmlSerializer in .Net has some quirks; for example it wont serialize private fields, unless they have a related public Property or they have some special attributes declared for data contracts. Some elements won't even appear if they are null unless we tag them with an IsNullable.

So for now I'll keep using the manual construction methods. If derheld provides some wisdom about the .Net xml serializer benefits over them, I'll be happy to switch though.

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: New Cargo/Fuel meter
Next Topic: Completing the Forum Move
Goto Forum:
  


Current Time: Sun May 05 02:20:37 EDT 2024