473,761 Members | 5,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ReadXML not being called when implementing IXmlSerializabl e

Hi
I have an object model which includes a Dictionary<> property which I am
trying to serialize/deserialize using IXmlSerializabl e as follows

class X:IDictionary<a ,b>,IXmlSeriali zable)

What is happening is that the objects get persisted fine (checked using
notepad) and I can step through the WriteXml routine using the debugger.
However when trying to deserialize, my ReadXml routine is just not being
called - break points in the debugger are never being hit. The bizarre thing
is I have two such collections implemented pretty much identically and one
works and one doesn't!

Can anyone give me any pointers as to what the problem might be.

Thanks

Marek
Jun 22 '06 #1
0 1521

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

Similar topics

1
3349
by: Tim Mulholland | last post by:
Hopefully someone can point out what is going on here. I'll give a short explanation first, then a more detailed one at the bottom if anyone wants to dig into it more. I have a strongly-typed dataset (from a .xsd file in my project) called dsConfig. When i make the following call: dsConfig.ReadXml("buttons.xml", XmlReadMode.Auto);
3
2403
by: Raj Chudasama | last post by:
I am trying to read an xml file and have it view data in the datagrid. (For example take the xml file viewer in the visual studio, when u open an xml file it has that nice readable grid). I though that when i use the ReadXml funtion it will automatically read data and add the data to the datagrid. but i am wrong its not that simple. so i need help only with adding the data to the datagrid. this is what i have so far. I have created...
2
4819
by: C Glenn | last post by:
I'm attempting to use ReadXml. It's working in that I end up with some data in the DataSet. But I'm not able to deal with it effectively after that. The XML file is properly formatted in that it was created with WriteXML, so it contains the name of the table (I've inspected it to be sure). But after calling ReadXml the DataSet does not contain a table with the specified name. In fact, Tables does not contain a table corresponding to...
0
1266
by: Guy Soffer | last post by:
Hi, I have a serialized object which looks like: <List> <ItemName="a"> <ItemName="b"> <Node Name="c" /> </Item> </Item>
0
1351
by: Guy | last post by:
Hi, I have a serialized object which looks like: <List> <ItemName="a"> <ItemName="b"> <Node Name="c" /> </Item> </Item>
1
1455
by: BlouHond | last post by:
Hi, I'm using VB.net 2005. My dataset is called DsDetails1 My XML file is called details.xml When I use ReadXML, is there any way that I can set the path of this XML file to be read to be the root of my VB sollution. I need to be able to move the project around to different computers while coding, and I do not want to change the connection string every time. tried: DsDetails1.ReadXml("|DataDirectory|\Details.xml") as with a...
2
1791
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
I whave a custom membershipProvider which inherits from MembershiopUser also I want to implement IXmlSerializable. Is my following code correct. public class SSOMembershipUser : System.Web.Security.MembershipUser :IXmlSerializable
1
1349
by: Rainer Queck | last post by:
Hello NG, I am using a typed DataSet, created with VS dataset designer. I have the problem , that a table in the dataset refuses to read a xml file. The strange thing is that if I create a seperate datatable, using the Typed DataSet.Table this reads the xml file without any problems: To make it a little more clear: public class MyClass {
0
1173
by: Arto Viitanen | last post by:
I am using WriteXML/ReadXml pair to save DataSet for later use. DataSet is built by reading textfiles and storing their data to different DataTables. Each file contains several complex values, that are represented using a DataValue object. DataValue is an abstract class, that has subclasses that implement the value (for example; ValBlkValue represents a vector of floating values). Class DataValue implements IXmlSerializable interface and...
0
9522
marktang
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...
0
9336
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
10111
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
9948
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
9902
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,...
1
7327
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...
1
3866
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
3
3446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.