Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
dataSet1.ReadXml("c:\\inetpub\\wwwroot\\lang\\languageEN.xml");
This code creates the following exception: Cannot add a column named 'heading': a nested table with the same name already belongs to this DataTable. The same error will be generated by using MS tool XSD.exe also. This is rather expected due to the structure of this file with several likewise named "tables" ('heading' is at least used twice), and the inference of this XML will not create nested tables as supposed. Im not sure if there are other solutions than using the XSD to circumvent this problem, but another solution is of course to traverse the XML "by hand" and generating the datatables etc. on my own, but that will only copy the inference and making it possible for me to rename/alias the tablenames as they appear, and as such I do not think this is a good solution, and it will of course be a lot more work, than the above one liner ;-)