I was given a xsd file to use it and make a xml file with data.
This is what i planned to do, using an c# project in Visual Studio 2008
- Make a dataset from that xsd file:
- added the mpc.xsd file to the project to create an DataSet
- set MSDataSetGenerator to its property "PersonalizedTools"
- open it with DataSet designer.
- Fill its datatables with data
- Use dataset.WriteXML to save data as XML.
The problem is when i want to instance it,
ds_mpc = new DATASETS.DS_MPC();
Gives the next error:
"The same table 'X' cannot be the child table in two nested relations."
Is there an walk around to avoid that error? or Is there another way to use that xsd schema, populate within data and make a xml file.?
This is the link to that xsd file: https://sppld.sat.gob.mx/pld/documentos/links/xsd/mpc.xsd