R
Ron M. Newman
Hi,
what I really want is XML Persistence - the writing side is DONE, what I'm
working on is the reading. I am storing dynamic attributed objects. an
attributed object is a collection of named attributes and their values.
for example:
attribute name: "name"
attribute type: "System.String"
attribute value: "Mr. Smith"
attribute name "age"
attribute type: "Sytstem.Int32"
attribute value: "32"
my question is, once I have loaded the attribute description from XML and I
have the type and value, I'd like to re-create the object in memory and
assign th evalue to it. not everything supports Parse, so I might have to
decide that those objects that do not have "Parse" would use serialization
in writing and reading. Also, I know you can't just instantiate "String()"
it doesn't have an empty constructor prototype.
I guess what I need now is an advice on how you'd solve this problem. Is
there a golden rule I can use here? or am I doomed to make a private case
for Strings, things that have "Parse" and objects like images which must be
serialized.
Thanks
Ron
what I really want is XML Persistence - the writing side is DONE, what I'm
working on is the reading. I am storing dynamic attributed objects. an
attributed object is a collection of named attributes and their values.
for example:
attribute name: "name"
attribute type: "System.String"
attribute value: "Mr. Smith"
attribute name "age"
attribute type: "Sytstem.Int32"
attribute value: "32"
my question is, once I have loaded the attribute description from XML and I
have the type and value, I'd like to re-create the object in memory and
assign th evalue to it. not everything supports Parse, so I might have to
decide that those objects that do not have "Parse" would use serialization
in writing and reading. Also, I know you can't just instantiate "String()"
it doesn't have an empty constructor prototype.
I guess what I need now is an advice on how you'd solve this problem. Is
there a golden rule I can use here? or am I doomed to make a private case
for Strings, things that have "Parse" and objects like images which must be
serialized.
Thanks
Ron