Associate Xml attribute with type

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
Whoa, I'm hitting the techoff hard at the moment. (I'll get you all cake later.)

Well, I've inherited an xml document and want to read it into its specific types using XmlReader.ReadContentAsObject() and rely on .NET to*do its magic and convert things into the correct type.

Now, at the moment the XML elements have a "type" attribute which the document creators thought would be a great thing, and it close matches what you'd expect an XML type to be.

So for example:

true

but, of course, .Net has no comprehension of these types. Is there a simple way (in, for example a schema of which I have only the briefest knowledge) to essentially associate one of these "type" attributes with a proper XML type?

More...

View All Our Microsft Related Feeds
 
Back
Top