Hello,
when serializing an array of elements of a class Classname using
XmlSerializer.S erialize() I get an XML like the following:
<?xml version="1.0">
<ArrayOfClassna me>
.......
.......
</ArrayOfClassnam e>
I'd like to be able to set the XML root node to something different from
<ArrayOfClassna me> .... for example something like <Classnames>.
As an alternative when deserilizing an XML such as the following:
<?xml version="1.0">
<Classnames>
.......
.......
</Classnames>
I'd like to be able to "load" it into an array of objects of class Classname
(at the moment when making such an attempt I get an obvious exception
stating "<Classname s> was not expected").
Bob Rock
when serializing an array of elements of a class Classname using
XmlSerializer.S erialize() I get an XML like the following:
<?xml version="1.0">
<ArrayOfClassna me>
.......
.......
</ArrayOfClassnam e>
I'd like to be able to set the XML root node to something different from
<ArrayOfClassna me> .... for example something like <Classnames>.
As an alternative when deserilizing an XML such as the following:
<?xml version="1.0">
<Classnames>
.......
.......
</Classnames>
I'd like to be able to "load" it into an array of objects of class Classname
(at the moment when making such an attempt I get an obvious exception
stating "<Classname s> was not expected").
Bob Rock
Comment