You must Sign In to post a response.
  • Category: XML

    Nested table 'Message' which inherits its namespace cannot have multiple parent tables in

    hi,

    I have complex xml file, the are many parents ,child and sub nodes. there was a message node , which is in many parent node. thing is when I am loading xx.xml file into dataset , it's causing below error:


    Nested table 'Message' which inherits its namespace cannot have multiple parent tables in different namespaces


    code:
    var fileName = Path.GetFileName(file.FileName);
    var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);
    file.SaveAs(path);
    string xmlIn = System.IO.File.ReadAllText(path);
    DataSet dsitems = new DataSet();
    dsitems.ReadXml(path);// here it's causing above error.




    any suggestions , how to resolve it.
  • #753578
    Hi,
    Since I don't have the XML it is hard to suggest what exactly is going wrong. Please refer below link and see if it helps as it has got lot of useful suggestions and links to other articles: forums.asp.net/t/1625222.aspx?Nested+table+link+which+inherits+its+namespace+cannot+have+multiple+parent+tables+in+different+namespaces+


    Regards,
    Asheej T K

  • #753688
    Is there two parent for same table name.

    I mean the Tag which has two parent tag in this case the error may come.

    Please change the parent accordingly.

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM


  • Sign In to post your comments