Problem in converting xml to a dataset
-
Hi all, Im getting the error while converting xml to a dataset.Please help me. Im converting xml file to dataset using the following code.
TextWriter twHistory = new StreamWriter(location + ".xml"); twHistory.WriteLine(XMLdoc); twHistory.Close(); DataSet dsHistoryXml = new DataSet(); dsHistoryXml.ReadXml(location + ".xml");
Cannot add a column named 'PerUser': a nested table with the same name already belongs to this DataTable.
-
Hi all, Im getting the error while converting xml to a dataset.Please help me. Im converting xml file to dataset using the following code.
TextWriter twHistory = new StreamWriter(location + ".xml"); twHistory.WriteLine(XMLdoc); twHistory.Close(); DataSet dsHistoryXml = new DataSet(); dsHistoryXml.ReadXml(location + ".xml");
Cannot add a column named 'PerUser': a nested table with the same name already belongs to this DataTable.
-
-
anu_anu wrote:
Im nt unwantedly posting the message again and again..
Then don't!!:mad: You shouldn't be posting the same question over and over again, it won't get you any different answers, just ignored.
only two letters away from being an asset
-
anu_anu wrote:
Is it a answer.. Im nt unwantedly posting the message again and again..
So why do it; respond sensibly to the post where people have tried to help you. For a start your line of code and your error message have no correlation whatever. Look at your code and find where the error message is coming from to try and work out what is wrong.
-
anu_anu wrote:
Is it a answer.. Im nt unwantedly posting the message again and again..
So why do it; respond sensibly to the post where people have tried to help you. For a start your line of code and your error message have no correlation whatever. Look at your code and find where the error message is coming from to try and work out what is wrong.
-
Hi all, Im getting the error while converting xml to a dataset.Please help me. Im converting xml file to dataset using the following code.
TextWriter twHistory = new StreamWriter(location + ".xml"); twHistory.WriteLine(XMLdoc); twHistory.Close(); DataSet dsHistoryXml = new DataSet(); dsHistoryXml.ReadXml(location + ".xml");
Cannot add a column named 'PerUser': a nested table with the same name already belongs to this DataTable.
I'm sorry, but the issue appears to be that you are dumb as toast. The error means what it says. What have you done to try to fix it ? You sat at your desk for a day crying because you are incapable of even trying to do your job, then you just posted it again, right ? The conversion is failing because you have a column with the same name as a nested table ( which is what the message says ). You could find and rename the table, or you could find and rename the column. If you post again, please report the things you have done to try to do your own job, instead of just waiting for someone to do it for you.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I'm sorry, but the issue appears to be that you are dumb as toast. The error means what it says. What have you done to try to fix it ? You sat at your desk for a day crying because you are incapable of even trying to do your job, then you just posted it again, right ? The conversion is failing because you have a column with the same name as a nested table ( which is what the message says ). You could find and rename the table, or you could find and rename the column. If you post again, please report the things you have done to try to do your own job, instead of just waiting for someone to do it for you.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
No one will ask question if you pepole answer like this. No one will born with great mind. Behave like a basic human beings.Dont think that all the people would have great knowledge. Dont underestimate others job.Codeproject loses one member... Bye.. These line are given for you people only. Try to read these line before you answer.This is all the members who replied my query.
Apologies for the shouting but this is important. When answering a question please: 1.Read the question carefully 2.Understand that English isn't everyone's first language so be lenient of bad spelling and grammar 3.If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome 4.If the question is inappropriate then click the 'vote to remove message' button Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
-
No one will ask question if you pepole answer like this. No one will born with great mind. Behave like a basic human beings.Dont think that all the people would have great knowledge. Dont underestimate others job.Codeproject loses one member... Bye.. These line are given for you people only. Try to read these line before you answer.This is all the members who replied my query.
Apologies for the shouting but this is important. When answering a question please: 1.Read the question carefully 2.Understand that English isn't everyone's first language so be lenient of bad spelling and grammar 3.If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome 4.If the question is inappropriate then click the 'vote to remove message' button Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
So quiting is an answer? Christian can be harsh sometimes because lots of people post requests for code for an entire project. CodeProject is not an outsourcing site, people help others for free. I can see you are different and as I said Christian was harsh... again, the error was clear but I understand that language is a barrior as english is not my first language too.