473,320 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Getting data from an XML serialised class .


Hello,
I'm calling a web method of an xml web service. The method returns a class
that is
serialized according to an xml schema definition.
The xml schema is very extensive an has several level of nodes (child
nodes).

My question is: How can i best read data from the class that the web method
returns.

I'm thinking converting the class to a dataset. Does tha make any sens?
Many thanks in advance
JB
Nov 16 '05 #1
3 1160
Bredhal,

It depends on what you are going to do with the class. If there are a
lot of relations between the nodes of data, then a data set might be better,
as it will capture those relations better. The reason for this is that with
XML Serialization, it does not take int account relations between nodes (if
one node references another node of data, it won't pick it up).

I think it would be easier to just use the dataset anyways, since you
have so many levels.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bredahl jensen" <br************@yahoo.dk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Hello,
I'm calling a web method of an xml web service. The method returns a
class
that is
serialized according to an xml schema definition.
The xml schema is very extensive an has several level of nodes (child
nodes).

My question is: How can i best read data from the class that the web
method
returns.

I'm thinking converting the class to a dataset. Does tha make any sens?
Many thanks in advance
JB

Nov 16 '05 #2
Great,
How do i go from the class to the dataset?
The class is serializable.
How to proceed to get the corresponding DataSet?
Nov 16 '05 #3
Jensen,

You can just call the ReadXml method on the DataSet to load the XML into
the dataset.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jensen Bredhal" <je************@yahoo.dk> wrote in message
news:ug**************@TK2MSFTNGP11.phx.gbl...
Great,
How do i go from the class to the dataset?
The class is serializable.
How to proceed to get the corresponding DataSet?

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steven | last post by:
As the subject indicates, I want to be able to access a Java Serialised Object without writing a line of Java. VB.NET or C#.NET is fine. I want to use .NET to open such an object, and write to...
0
by: Steven | last post by:
I may have posted this twice, if so, my apologies. Trying to access a JAVA serialised object through .NET language (VB or C#) I don't want to write any Java code. But I can comprimise to J# if...
5
by: Brandons of mass destruction | last post by:
Ok, I work for a small newspaper thats looking to translate our content to the web. XML sounds like a good way to do this, but i'm a little confused. Is it possible to have <b> and <i> tags in...
0
by: sumansms | last post by:
Hi All, I am getting wrong date when I am using DateTime.Parse function. The following is the code.. DateValue = DateTime.Parse(datarow.ToString()).ToString("MM/dd/yyyy"); I am taking the data...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.