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