How to serialize classes generated by XSD.exe

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I ran XSD.exe on a XSD with imported XSDs 3 level deep. I now have a .cs file that contains several classes. I had anticipated some sort of hierarchy between the classes, but it does not seem to exist. That XSD that I used to generate the
classes is for an invoice notification. In the .cs file, I expected all the objects, ex. BillTo/SoldTo/LineItems, to be child objects of the Invoice Notification, but that does not seem to be the case. Instead, I am having to instantiate each object
separately, which will leave me with several objects to serialize into an XML document. The .cs file that was generated by XSD.exe can be found at the link below. I could be reading the file incorrectly, I may have forgot a flag when I ran XSD.exe,
XSD.exe I.xsd /l:CS /c 1.xsd, 2.xsd.... Any help would be appreciated.

<a title="InvoiceNotification.cs http://www.filedropper.com/invoicenotification" title="InvoiceNotification.cs http://www.filedropper.com/invoicenotification

View the full article
 
Back
Top