User-284642143 posted
For a learning curve and to ensure i'm not introducing bad habits, Im trying to find the correct procedure to get an XSD into a C# class. If you have an XSD which contains references to other XSDs and generate C# classes would you expect to change the automated
class if required? I'm asking this to determine if this is ok and if not is this an indication the class has not been created correctly.
Currently when i use the XSD supplied and an online service to generate the XML, the C# classes generated are slightly incorrect (i receive an error that the XML received is incorrect (1, 40)), so i added the odd property along with the Element it requires
and all is working again.
I tried XSD.exe but that created one huge class and i wasnt sure which the base class was or even if i took a guess i wasnt entirely sure if i was to call one URL (to get the data) then iterate through the data returned or use this data to make another call
to another URL (i.e. first call is a list of customers and the second call would then be to pass in the ID of the record to get that record's detail).
I have read some of the links posted in the past but just want to make sure im on the right track. Thanks in advance