Hi I would like to ask if i use the dataset in the code, is it that i have to create xml in it? what is the the meaning dataset for?
Printable View
Hi I would like to ask if i use the dataset in the code, is it that i have to create xml in it? what is the the meaning dataset for?
Not sure exactly what you mean. Are you asking if you can create an XML file from a dataset....answer: Yes, using the dataset.writeXml method. If you are asking what is the purpose of the dataset if you already have an XML document to read. Answer: .NET has very good native XML readers. You can just read the xml doc without doing and table, column mapping and read the data from the dataset as loaded in memory.
erm if i want to use dataset, Can i not use xml instead use sql?Quote:
Originally posted by betrl8thanever
Not sure exactly what you mean. Are you asking if you can create an XML file from a dataset....answer: Yes, using the dataset.writeXml method. If you are asking what is the purpose of the dataset if you already have an XML document to read. Answer: .NET has very good native XML readers. You can just read the xml doc without doing and table, column mapping and read the data from the dataset as loaded in memory.
I'm sorry, but I'm still unclear as to what you're asking. Datasets can be used for anything having to do with data. They can be used when connecting to a database, when reading XML, SQL Server, Oracle, MySQL, Access, FoxPro, etc.... Look at a dataset as a computer memory storage of a database, that disposes when your application is closed. You don't even have to use a datasource. You can use datasets just to store your program information in.
As I understand your question (with some difficulties :D) , then yes why not .:rolleyes:Quote:
Originally posted by Sakana
erm if i want to use dataset, Can i not use xml instead use sql?