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.
|
|
|
|
|
![]() |
||
XML to dataset, bussiness objects
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
![]() |
| Tags |
| xml, dataset, bussiness, objects |
| Thread Tools | |
|
|
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 |