.net - Serialize all properties of class to XML -


i have load of classes , need generate xml schema these classes.

the easiest way can think create classes, serialize xml , run xsd on xml.

however, if don't set properties of class, no xml node created , therefore xsd doesn't pick up.

is there way me tell xml serializer serialize properties of class, rather ones have values set?

hopeful, more expecting! duncan

xsd.exe can generate schemas assembly. specify /type switch.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

c++ - Convert big endian to little endian when reading from a binary file -