XML to dataset, bussiness objects

This is a discussion on "XML to dataset, bussiness objects" within the ASP.NET Forum section. This forum, and the thread "XML to dataset, bussiness objects are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 28th, 2006, 05:46
New Member
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
XML to dataset, bussiness objects

I have a xml document as follows returned from a web service
<Variables>
<Email>a...@xyz.com</Email>
<Status>ENABLED</Status>
<UserDetails ID="21">
<Name>
<Title>Mr.</Title>
<FName>John</FName>
<MName>M</MName>
<LName>Dahl</LName>
</Name>
<Gender>Female</Gender>
<Address>
<Line1>Sassan</Line1>
<Line2>Massan</Line2>
<City>Utah</City>
<Country>USA</Country>
</Address>
<Phone>425265245</Phone>
<Mobile>95686265487</Mobile>
<Fax />
<Homepage />
</UserDetails>
</Variables>

First I tried to deserialize this xml to Dataset using Dataset.ReadXML
method with XMLReadMode.IgonreSchema. But the attribute ID of
UserDetails is not deserialized. What I need it to deserialize the xml
into a dataset with only one table and all the xml elements and attributes converted
to table columns.

The final result is to wrap the dataset to a Customer object. I even
tried to directly deserialize the xml to Customer object but that will
create child objects like Address, UserDetails etc.

So is there any way so that I can deserailize the xml to single table
Dataset or the Customer object with the elements and attributes mapped to public
properties

Help.
Reply With Quote

Reply

Tags
xml, dataset, bussiness, objects

Thread Tools

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

BB 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
Moving Objects (Not sure if this goes here) Stormraven JavaScript Forum 9 May 11th, 2008 21:59
Graphic Designer wanted for new bussiness crewdesign Job Opportunities 0 Dec 27th, 2005 18:04
Internet Explorer & objects... HELP! brittny Web Page Design 7 Jul 6th, 2005 23:29
revolving objects benji Flash & Multimedia Forum 5 Sep 9th, 2003 11:56


All times are GMT. The time now is 00:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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