.net - How create a serializable C# class from XML file -
i new xml in .net. part of task need create class can serialized xml. have sample xml file tags(the class should produce xml similar sample xml file ). best approach create class xml file?
thank in advance!!
you can use xsd.exe create .cs file .xml. http://msdn.microsoft.com/en-us/library/x6c1kb0s%28vs.71%29.aspx
at command line:
xsd myfile.xml xsd myfile.xsd
the first line generate schema definition file (xsd), second file should generate .cs file. i'm not sure if syntax exact, should started.
Comments
Post a Comment