473,374 Members | 1,651 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,374 software developers and data experts.

Deserialising XML: UnknownNode Event Fires for Nodes/Classes that are Known

I have an xml file that I created by serializing a collection that I have
created. It contains attributes and elements that correspond to my classes.

I want to use the UnknownNode, UnknownAttribute and UnknownElement events
when I deserialize the file to tell if the file has been changed to contain
unrecognised data.

When I deserialize the file, the UnknownNode and UnknownAttribute events
fire for just about every node and attribute where e.Name is "xsi:type" and
e.Text is the name of one of my classes.

Firstly, I don't know why the file contains xsi:type all over the place, and
secondly, how can I stop these events from firing for nodes and attributes
that really are recognised?

I should add that the file actually deserializes correctly, but I always get
these events raised.



Jul 21 '05 #1
0 1147

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

Similar topics

by: Mahesh Devjibhai Dhola | last post by:
Hi All, I want to make a custom class in c#, which extends System.Xml.XmlNode class of BCL. Now in custom class, I have implement abstract methods of XmlNode class also. Now when I am trying to...
by: Grant | last post by:
I have this simple xml file which wont ever get beyong 3 nodes deep. I need to get the value of the child node of any node with an id of '63'. So fir instance I would be returned 'False' from the...
by: Steve Teeples | last post by:
I have a question on event handling. Here is my situation. I have a main form which has a TreeView control containing nodes whose tags contain class instances of test cases. As I traverse...
by: Heidi Hundåla | last post by:
Hi ! I have a Wep App in C#. Page_Unload fires after Page_Load, and it seems totally unreasonable when you want to use this event when you _leave_ the page. In my project we wanted to use...
by: Charles Law | last post by:
I have an xml file that I created by serializing a collection that I have created. It contains attributes and elements that correspond to my classes. I want to use the UnknownNode,...
by: | last post by:
Hi, I'm steel trying to read and update my XML file with Visual Basic Express but i am unable to find the right way to read my xml file and update it if neccessary... Here is my problem :...
by: nicky123 | last post by:
Hi everyone, This is a brief description that I have provided for parsing & displaying an XML document using DOM API. Please feel free to post your own comments & views regarding...
by: =?Utf-8?B?SWFpbg==?= | last post by:
I've created some c# classes from Xsds. The classes have namespace attributes in the XmlRootAttributes. Accordingly, they will NOT deserialize with the XmlSerializer unless the same namespace...
by: csharpula csharp | last post by:
Hello! I have inheritance between classes which are the result of xml serialization. My question is how can I insure in serializaion stage that the hierarchy in xml is according to inheritance...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.