Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML To Dataset
Message
From
20/03/2008 05:11:14
 
 
To
20/03/2008 00:44:21
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01303148
Message ID:
01303760
Views:
22
>Arrrggghhh!! You guys are making this way too complex! DataSet.GetXml() returns exactly what you posted Viv:
>
>
><?xml version="1.0" encoding="utf-8" ?>
><People>
>  <Person>
>    <FirstName>Fred</FirstName>
>    <LastName>Bloggs</LastName>
>  </Person>
>  <Person>
>    <FirstName>Joe</FirstName>
>    <LastName>Smith</LastName>
>  </Person>
></People>
>
Hi,
I know. But I thought we were talking about whether to return a Dataset from a web service *as* a Dataset or as some other representation of the data. I was simply attempting to point out that if you know the client is a .net client then you can just return the Dataset so that it is directly usable by the client - otherwise a simpler representation will almost always be preferable. And Yes .GetXML() is a simple way of obtaining a simpler piece of XML. So, in essence, the pros and cons of 'return Dataset' v 'return Dataset.GetXML()' or similar
Best,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform