Skip to Content
0
Former Member
Nov 20, 2008 at 10:10 PM

Class into an XML file into a DataSet vs. Reflection into a DataTable

20 Views

In order to serialize a class (SystemSetup) and load an XML file into a datatable and then a dataset I must:

1. Create an .XSD file using the XSD SDK tool.

2. DataTable.LoadSchemaFile

3. DataTable.LoadXml

4. Then add the datatable to a dataset.

Is this correct?

Another method using Reflection.

Reflect the SystemSetup class into a datatable.

Push the datatable->dataset to the crystal report.

Will this work?

Which one is preferable? Thx.,

Ajay