Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in converting xml to a dataset

Problem in converting xml to a dataset

Scheduled Pinned Locked Moved ASP.NET
helpxml
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    janani13
    wrote on last edited by
    #1

    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.

    L C 2 Replies Last reply
    0
    • J janani13

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      anu_anu wrote:

      Im getting the error while converting xml to a dataset.

      See answer here[^].

      J 1 Reply Last reply
      0
      • L Lost User

        anu_anu wrote:

        Im getting the error while converting xml to a dataset.

        See answer here[^].

        J Offline
        J Offline
        janani13
        wrote on last edited by
        #3

        Is it a answer.. Im nt unwantedly posting the message again and again..

        N L 2 Replies Last reply
        0
        • J janani13

          Is it a answer.. Im nt unwantedly posting the message again and again..

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • J janani13

            Is it a answer.. Im nt unwantedly posting the message again and again..

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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.

            J 1 Reply Last reply
            0
            • L Lost User

              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.

              J Offline
              J Offline
              janani13
              wrote on last edited by
              #6

              Thnk u

              1 Reply Last reply
              0
              • J janani13

                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.

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                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.

                J 1 Reply Last reply
                0
                • C Christian Graus

                  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.

                  J Offline
                  J Offline
                  janani13
                  wrote on last edited by
                  #8

                  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.

                  B 1 Reply Last reply
                  0
                  • J janani13

                    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.

                    B Offline
                    B Offline
                    Bassam Saoud
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups