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. General Programming
  3. C#
  4. Comparing excel data to XML

Comparing excel data to XML

Scheduled Pinned Locked Moved C#
questionxml
4 Posts 2 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.
  • N Offline
    N Offline
    ndroo882
    wrote on last edited by
    #1

    Hi all, I need to develop an application that can compare an Excel spreadsheet with some data that I can view on an internal site My plan was to -read the data from Excel into a dataset, -get the data from the site in XML format and -then compare this. My question is - do you think this is the best way to solve this? i.e. get the data from Excel into a dataset, get the data in XML format from the site to a dataset, and compare the two? I'm not even sure that the data I get from the site is in a format that can be compared to the Excel data as the tables aren't the same, so I will probably have to modify it so as to make them in a similar format before comparing any input appreciated edit: re-reading this i m not sure its clear: source 1 :: Excel source 2 :: Data on an internal site objective: compare the 2 suggestions: see above question: best solution :)

    Mircea PuiuM 1 Reply Last reply
    0
    • N ndroo882

      Hi all, I need to develop an application that can compare an Excel spreadsheet with some data that I can view on an internal site My plan was to -read the data from Excel into a dataset, -get the data from the site in XML format and -then compare this. My question is - do you think this is the best way to solve this? i.e. get the data from Excel into a dataset, get the data in XML format from the site to a dataset, and compare the two? I'm not even sure that the data I get from the site is in a format that can be compared to the Excel data as the tables aren't the same, so I will probably have to modify it so as to make them in a similar format before comparing any input appreciated edit: re-reading this i m not sure its clear: source 1 :: Excel source 2 :: Data on an internal site objective: compare the 2 suggestions: see above question: best solution :)

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      Hard to say from the info you peovided. maybe you should think of some parsers.

      SkyWalker

      N 1 Reply Last reply
      0
      • Mircea PuiuM Mircea Puiu

        Hard to say from the info you peovided. maybe you should think of some parsers.

        SkyWalker

        N Offline
        N Offline
        ndroo882
        wrote on last edited by
        #3

        Basically i don't need an optimal way to do this as this will run once a week only from a local machine - no particular speed requirements Let's say that the database info I get from the site is similar to the one I have on Excel, can I just confirm that I can connect to the Excel using ado.net and get the data in a dataset. I will then have an XmlTextReader with raw XML data from the site - convert that into a dataset and compare the two datasets. Does this plan make sense?

        Mircea PuiuM 1 Reply Last reply
        0
        • N ndroo882

          Basically i don't need an optimal way to do this as this will run once a week only from a local machine - no particular speed requirements Let's say that the database info I get from the site is similar to the one I have on Excel, can I just confirm that I can connect to the Excel using ado.net and get the data in a dataset. I will then have an XmlTextReader with raw XML data from the site - convert that into a dataset and compare the two datasets. Does this plan make sense?

          Mircea PuiuM Offline
          Mircea PuiuM Offline
          Mircea Puiu
          wrote on last edited by
          #4

          You have, I guess, the software requirements,so it's entirely up to you to set the approach to solving your problem.

          SkyWalker

          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