|
by: Colin Basterfield |
last post by:
Hi,
I have a list which is derived from CollectionBase, and it contains a list
of User objects, which I want to Serialize out to an XML file.
Is there anywhere where I can find how to decode it so that it recognizes
what objects are held in my list? or an example in C# prefereably?
Many thanks in advance...
Colin
|
by: Daniel Lidström |
last post by:
Hi,
for what reason do I put XmlType and XmlRoot attributes on classes for XML
serialization? I understand the reason for the top element, but not why it
is sometimes put for child elements.
--
Daniel
|
by: Brad |
last post by:
I would like to serialize an arraylist of objects to xml so I can store the
xml in a database column. How would I code the serializing and
deserializing? Below is a (overly) simple, incomplete example of what I'd
want to accomplish.
Thanks
Brad
Example
|
by: Joe |
last post by:
Hello All,
I want to serialize a hashtable to a database table to persist its values
between postbacks. The client requires that I not use ViewState, hence the
database.
The samples in MSDN show how to serialize a class that implements the
ICollection interface to a file. Does anyone know how to serialize to a
database table and conversely de-serialize from the table?
|
by: Andrew Robinson |
last post by:
I need to serialize a dictionary so I can encode the contents. I have the
following working but the size seems large. I am guessing that I am
serializing the entire object not just the data. Is there a better way?
MemoryStream stream = new MemoryStream();
BinaryFormatter formatter = new BinaryFormatter();
Dictionary<string, string> dictionary = new Dictionary<string, string>();
dictionary.Add("name", "andrew");
dictionary.Add("home",...
|
|
by: Romain TAILLANDIER |
last post by:
Hi group
I am quite new to xml.
I have a strong typed collection derived from a collection base, and i need
to serialize it.
I have seriously search on the net and don't find any help about how to make
a collection serialisable with a real name (with not the ArrayOf prefix)
There is a workaround by encapsulate the collection as a property in another
class and serialise that class.
|
by: Ympostor |
last post by:
Hello. I am using attribute for redefining the element name
used in XML Serialization, but it only works for the parent elemnt:
Simple test code (referencing System.Xml):
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
|
by: =?Utf-8?B?U2hhd24=?= |
last post by:
Hi;
I would like to be able to use the XMLSerializer to serialize and
deserialize a dictionary. is that possible? i know that you can serialize an
object that implements the ICollection interface. does the fact that
Dictionary inherits from ICollection<cause a problem?
Currently i am using a class that inherits from ICollection and it has a
Dictionary as it's container. but when it gets to creating the serialized
object it blows up. here...
|
by: vfilby |
last post by:
Using C#, XmlSerializer, XP
I have a class that I want to serialize, for compatibility reasons I need a specific ElementName. To accomplish this I added right before the class definition. When I serialize the class, though, it uses the class name rather than the SpecificName. It appears to be ignoring the XmlRoot attribute.
All the other attributes within the class work perfectly fine, just the XmlRootAttribute that is not quite...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
|
|
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...
|
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...
|
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...
|
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...
|
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();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|