Can a DataSet hold XML data? - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > .NET » Can a DataSet hold XML data?


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-12-2006   #1 (permalink)
Tom Tom
Junior Member
 
Join Date: Jul 2006
Age: 48
Posts: 25
Default Can a DataSet hold XML data?

Absolutely. In fact, when the dataset is traveling from the server to the client and back, it's first transformed into XML. This allows it to move data into place that normally wouldn't be accessible, such as behind restricted firewalls, which are designed to stop unauthorized data. Beacuse XML is plan text, firewalls ignore it and allow it through
Tom Tom is offline   Reply With Quote


Old 07-12-2006   #2 (permalink)
Dan11
Junior Member
 
Join Date: Jul 2006
Age: 24
Posts: 10
Default

Would you recommend using a dataset over a datagrid for XML?
I think a dataset is more appropriate for XML data, is that correct?
Dan11 is offline   Reply With Quote

Old 07-12-2006   #3 (permalink)
Francisjr
Member
 
Join Date: Jul 2006
Age: 28
Posts: 61
Default

In the ADO.NET environment, XML plays a major role behind the scenes to organize data. When a dataset receives data from a database, it actually receives XML-based content. Likewise, if a data set updates its contents, it returns the new contents back to the database using XML. ADO.NET and XML go hand in hand; XML is used to represent structured data. ADO.NET uses XML to pass data between the server and client. The use of a dataset or XML to bind data to the grid depends actually from your source. If the data comes directly from a database, a dataset is definitely your choice. If the data comes from an XML file, you will still need to convert the XML to bind it to the grid as your source (because there is no direct link of an XML as your datasource)

Heres as example of binding an xml file to a datagrid:

Dim myDataSet as New DataSet()

myDataSet.ReadXml(Server.MapPath("books.xml"))

dgBooks.DataSource = myDataSet
dgBooks.DataBind()
Francisjr is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Data Protection Act hailey General Business Issues 1 07-20-2006 08:48 PM
Sites Using ODP Data alexa All Other SE's & Directories 0 07-11-2006 05:41 PM
Data Entry Marketing logan Marketing 0 06-29-2006 06:17 PM
Hold On Dummy101 Home Base 9 09-17-2005 04:32 AM


footer left
All times are GMT. The time now is 09:17 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Books | Cheap Magazine | Myspace Whore Train | Credit Cards | Car Finance

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49