datset with child table in two nested relations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i get the following error while reading an xml into a dataset
The same table cannot be the child table in two nested relation

is there a solution for it

XmlDataDocument datadoc = new XmlDataDocument()
datadoc.LoadXml(xmlstring)
ds = datadoc.DataSet;
 
It seems that your XML is not correctly formed. It says that you have
a child table A that is a child to one table B and another table C.
And table C is a child of B. If you post the XML snippet, it would
help.

Other thing that you can do is try to validate the XML file against
the schema using (XML -> Validate XML Data) command. I am sure your
validation would fail. If you do not have the schema file, try
creating one using (XML -> Create Schema) command. Try loading the XML
file only after you have validated it.

R. Kaushik
 
Back
Top