Wednesday, March 17, 2010

xsd xml serializer

you got an xml file template and you want serialize or deserialize this...

you may write class template by manual also but for complex xml files??

the solution using xsd command of vs. command promt

usage:
xsd "path of xml file" this genarates xsd file

than command promt again
xsd "pat of generated xsd file" /CLASSES
this genaretes class template

an other important point generated class has Namespace="" properties this gives xmlns="" errors while deseriling ...replace these with the xml's root node name..

the links -1 , 2

No comments: