PC Review


Reply
Thread Tools Rate Thread

deserialising system.object using xmlserialiser

 
 
=?Utf-8?B?R0FVUkFWIEtSSVNITkE=?=
Guest
Posts: n/a
 
      28th Nov 2005
Hi,
I want to deserialize the following class which has a object type of
member using xmlserialiser.The NamedValue.value can be any type of user
defined class/predefined types or single/two dimensional array.

public class NamedValue {

/// <remarks/>
public string name;

/// <remarks/>
///
public object value;
}

I am using XmlSerialiser to deserialise the xml. Although the class gets
deserialised but the representation of NamedValue.value is in the form of
XmlElement instead of long[] when the xml contains the array of long

xml fragement
==========

<name xsi:type="xsd:string">Missing information</name>
<value soapenc:arrayType="xsd:long[1]" xsi:type="soapenc:Array">
<value xsi:type="xsd:long">27148</value>
</value>

Is it possible to have a proper representation of NamedValue.value instead
of XmlElement.

--gaurav
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method 'System.Object DynamicInvoke(System.Object[])' has nosupported translation to SQL. Steve Richter Microsoft C# .NET 2 25th May 2009 03:57 AM
Method 'System.Object DynamicInvoke(System.Object[])' has nosupported translation to SQL. Steve Richter Microsoft C# .NET 0 25th May 2009 03:37 AM
Deserialising xml and Inheritance Johannes Elsinghorst Microsoft Dot NET Framework 9 12th Sep 2007 08:55 AM
Does arraylist work with xmlserialiser. archana Microsoft C# .NET 1 20th Jun 2006 02:52 PM
Self-deserialising object Paul E Collins Microsoft C# .NET 1 28th Aug 2003 08:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 PM.