S
sherifffruitfly
Hi,
I've got a dtd for my xml file according to which, for example, 0 or
more <component> elements are permitted. I'd like to take any xml file
conforming to this dtd, and deserialize it into a programmatic object.
My experience with the deserialization method is limited to classes
with *fixed* numbers of member data variables - and that number is
known ahead of time in the class definition.
Is it possible to use the built-in .net deserialization routines for a
varying (from xml doc to xml doc) number of elements? Or do I have to
"manually" deserialize, by reading the nodes, and plopping their
contents programmatically into the vars I want?
I'm googling, but having trouble finding a clear answer/program flow to
this.
Thanks for any suggestions,
cdj
I've got a dtd for my xml file according to which, for example, 0 or
more <component> elements are permitted. I'd like to take any xml file
conforming to this dtd, and deserialize it into a programmatic object.
My experience with the deserialization method is limited to classes
with *fixed* numbers of member data variables - and that number is
known ahead of time in the class definition.
Is it possible to use the built-in .net deserialization routines for a
varying (from xml doc to xml doc) number of elements? Or do I have to
"manually" deserialize, by reading the nodes, and plopping their
contents programmatically into the vars I want?
I'm googling, but having trouble finding a clear answer/program flow to
this.
Thanks for any suggestions,
cdj