How to load xml file to a datatable
-
Hello. I'm newbie in working with xml files. I need to load a xml file to a datatable. First thing I saw is the dataset.ReadXml method, but I get an exception: The same table (mSCAddress) cannot be the child table in two nested relations. The nesting level is quite deep, and later I have to move throw the structure to create a datatable with some relevant data. I don't know where to start.
Regards, Diego F.
-
Hello. I'm newbie in working with xml files. I need to load a xml file to a datatable. First thing I saw is the dataset.ReadXml method, but I get an exception: The same table (mSCAddress) cannot be the child table in two nested relations. The nesting level is quite deep, and later I have to move throw the structure to create a datatable with some relevant data. I don't know where to start.
Regards, Diego F.
I detail a bit the file structure. ... ... ... As you see, inside record section I have two posibilities. I can have just one data or a composite section, that contains more than one data sections. Inside data, there are different possibilities also. Is that structure a problem to load the file? Regards, Diego F.
-
I detail a bit the file structure. ... ... ... As you see, inside record section I have two posibilities. I can have just one data or a composite section, that contains more than one data sections. Inside data, there are different possibilities also. Is that structure a problem to load the file? Regards, Diego F.