471,348 Members | 1,756 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 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.

TIA

Charles

Jul 21 '05 #1
0 1090

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mahesh Devjibhai Dhola | last post: by
6 posts views Thread by Grant | last post: by
3 posts views Thread by Steve Teeples | last post: by
19 posts views Thread by Heidi Hundåla | last post: by
2 posts views Thread by =?Utf-8?B?SWFpbg==?= | last post: by
5 posts views Thread by csharpula csharp | last post: by
reply views Thread by Ronak mishra | last post: by

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.