.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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -