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. Dataset format inconsistency.

Dataset format inconsistency.

Scheduled Pinned Locked Moved C#
helphtmldebuggingxml
3 Posts 3 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.
  • M Offline
    M Offline
    M J Jaya Chitra
    wrote on last edited by
    #1

    Hi everybody, I was trying to load a dataset from the web service into the windows application. It is giving the error like "The requested format is XML but it is in HTML format". While debugging in from the dataset there are table and rows and then the Remote Format Property is also set to XML but i couldn't trace out the error. Can you please give a solution to resolve the issue.

    Best Regards, M. J. Jaya Chitra

    D K 2 Replies Last reply
    0
    • M M J Jaya Chitra

      Hi everybody, I was trying to load a dataset from the web service into the windows application. It is giving the error like "The requested format is XML but it is in HTML format". While debugging in from the dataset there are table and rows and then the Remote Format Property is also set to XML but i couldn't trace out the error. Can you please give a solution to resolve the issue.

      Best Regards, M. J. Jaya Chitra

      D Offline
      D Offline
      dotman1
      wrote on last edited by
      #2

      Hi, I am new to .NET and not sure if this will be of use. Have you read the XMLSchema prior to reading the file? // read the XML schema first to make sure we know how to generate the resulting DataTable myDataTable.ReadXmlSchema(myFile + "\\myXMLSchema.xml"); // fill the DataTable with the actual values that exist in the XML file. myDataTable.ReadXml(myFile + "\\myXML.xml"); // bind the resulting DataTable to the DataGridView xmlResultsDataGridView.DataSource = myDataTable; Download the Microsoft Samples (CS101SamplesAll) to reference reading and writing XML data. Regards

      dotman1

      1 Reply Last reply
      0
      • M M J Jaya Chitra

        Hi everybody, I was trying to load a dataset from the web service into the windows application. It is giving the error like "The requested format is XML but it is in HTML format". While debugging in from the dataset there are table and rows and then the Remote Format Property is also set to XML but i couldn't trace out the error. Can you please give a solution to resolve the issue.

        Best Regards, M. J. Jaya Chitra

        K Offline
        K Offline
        kabeervh
        wrote on last edited by
        #3

        Hi, What ur trying with the dataset. If u want to get the table, use datasetname.tables[tableindex].if u want to get a particular row use datasetname.tables[tableindex].rows[rowindex]. if u want to get a particulat fiels vales use datasetname.tables[tableindex].itemarray[colunmindex]. Kabeer V H kabeervh@yahoo.com

        im kabeer vh

        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