Featured post
c# - Modelling Classes based off versioned XSD files -
i'm coding standard defined in xml. standard has provided me 2 xsd's must support. breaking changes in backwards compatibility. question general 1 in best practice implement these. went down path of using "xsd.exe" generate class files model xml in typed manner. brought me conclusion there not way version class files in c# other overriding methods not clean me since changes pretty significant in terms of properties ect.
so initial idea use standard xml parsing in each versioned processor , not worry typed models, write lot more code( , less clean code ) in process.
second idea version model , processor names xsd version ( tag in xml ) id have class named "equipment_1_0" , "equipment_1_1" , use factory return me proper type de-serialize seems hacky.
and final idea turn here because these seems issue many people have addressed before. insight or resources can point me in terms of best practices in situation?
thanks
i suggest using similar http://blogs.msdn.com/b/mcsuksoldev/archive/2010/02/04/dynamic-xml-reader-with-c-and-net-4-0.aspx
- Get link
- X
- Other Apps
Comments
Post a Comment