473,804 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataType is not shown after serialization

hi,
When I am serializing the array of following ParameterValueS truct class i
didnot get
1> the type and size of array.
2> DataType of each element. It is especially needed in case of 'anyURI'
DataType.
I am using serializer class of XmlSerializatio n namespace of .NET framework.

public class ParameterValueS truct
{
[XmlElement (ElementName = "Name")]
public string parameterName;
[XmlElement (ElementName = "Value")]
public ParameterValueV alue parameterValue;
}

Example of what am getting!
=============== ===========
<cwmp:Parameter List >
<cwmp:Parameter ValueStruct>
<cwmp:Name>Inte rnetGatewayDevi ce.DeviceInfo.H ardwareVersion</cwmp:Name>
<cwmp:Value>SKY N_PLUS</cwmp:Value>
</cwmp:ParameterV alueStruct>
<cwmp:Parameter ValueStruct>
<cwmp:Name>Inte rnetGatewayDevi ce.DeviceInfo</cwmp:Name>
<cwmp:Value>BAN T-K</cwmp:Value>
</cwmp:ParameterV alueStruct>
</cwmp:ParameterL ist>

Example of what i want
=============== ===========
<cwmp:Parameter List arrayType="cwmp :ParameterValue Struct[2]">
<cwmp:Parameter ValueStruct>
<cwmp:Name>Inte rnetGatewayDevi ce.DeviceInfo.H ardwareVersion</cwmp:Name>
<cwmp:Value xsi:type="xsd:a nyURI">SKYN_PLU S</cwmp:Value>
</cwmp:ParameterV alueStruct>
<cwmp:Parameter ValueStruct>
<cwmp:Name>Inte rnetGatewayDevi ce.DeviceInfo</cwmp:Name>
<cwmp:Value xsi:type="xsd:a nyURI">BANT-K</cwmp:Value>
</cwmp:ParameterV alueStruct>
</cwmp:ParameterL ist>

Oct 3 '05 #1
0 971

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

Similar topics

37
5028
by: Ben | last post by:
Hi, there. Recently I was working on a problem where we want to save generic closures in a data structure (a vector). The closure should work for any data type and any method with pre-defined signature. When developing this lib, I figured that the pointer-to-member-function, although seemingly an attractive solution, does not work well for us.
9
1744
by: sandorf | last post by:
When I write: int a; and I want another name for "int", I can simply write typedef int interger but what if I want a more descriptive name for the datatype int a; ? typedef int two_intergers of course won't work. Thanks.
3
3179
by: Aaron Clamage | last post by:
Hi, I'm not sure that if this is the right forum, but any help would be greatly appreciated. I am porting some java serialization code to c# and I can't figure out the correct way to do it. It seems that either I can use default serialization or implement ISerializable. Is there any way to do both (e.g. extend the default serialization). In other words, I want to be able to implement my custom serialization code but call the...
0
839
by: Omkar Singh | last post by:
hi, When I am serializing the array of following ParameterValueStruct class i didnot get 1> the type and size of array. 2> DataType of each element. It is especially needed in case of 'anyURI' DataType. I am using serializer class of XmlSerialization namespace of .NET framework. public class ParameterValueStruct {
0
1237
by: vinayak | last post by:
Hi All , We are Developing an application in which Date is Stored in Oracle Database as Number and the same date has to shown to the user in DateTime Format. We are Using DataTable to Store the Corresponding Database Table. I cannot modify the dataType of a Column Once I have Data . How Can This Situation be dealt with . Any Help will be appreciated.
0
1730
by: Chang Lui | last post by:
I have an object marked with <Serializable()and using an xmlserializer to save xml to disk. But I need the XML to include the datatype of the property. I tried using <Xml.Serialization.XmlElement(Type:=GetType(Double))but that won't embed "double" in the XML-file. How can I get the dataype in the xml-file? Thanks
1
11113
by: kikisan | last post by:
I am developing a windows service which utilizes the following classes: interface IPersistable; abstract class PersistableObject : IPersistable;
0
1181
by: =?Utf-8?B?VmFubmk=?= | last post by:
Hi all, I have the need to generate C# classes from XSD schemas, and the XSD.exe tool is just (almost) great for that. I said "almost" because it seems that every XML Schema datatype other than boolean is rendered as a String field/property. As an example, I am getting:
2
5569
by: mkvenkit.vc | last post by:
Hello, I hope this is the right place to post a question on Boost. If not, please let me know where I can post this message and I will do so. I am having a strange problem with std::string as I am trying to read from a binary archive using Boost serialization. I am new to this, and it is possible that I have not understood the usage. In the code below, the string "faultblock" seems to be causing the problem. The code crashes in the ia...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.