A
Albert Jan
Hi,
I use XML in a webservice that looks like this:
<address>
<addressline>aaaa</addressline>
<addressline>aaaa</addressline>
<zip></zip>
<city></city>
</address>
which I want to serilize to objects.
When <address> does only contain <addressline> tags, I can use an attribute
like
[XmlArrayItem (typeof(addresslineType), ElementName = "addressline")]
virtual public addresslineType[] Address
{
get {return address;}
set{this.address= value;}
}
private addresslineType[] address;
for the adress object.
But because <address> also contains other elements I don't know what
attribute to use for correct serialization
Any help will be appreciated
Albert Jan
I use XML in a webservice that looks like this:
<address>
<addressline>aaaa</addressline>
<addressline>aaaa</addressline>
<zip></zip>
<city></city>
</address>
which I want to serilize to objects.
When <address> does only contain <addressline> tags, I can use an attribute
like
[XmlArrayItem (typeof(addresslineType), ElementName = "addressline")]
virtual public addresslineType[] Address
{
get {return address;}
set{this.address= value;}
}
private addresslineType[] address;
for the adress object.
But because <address> also contains other elements I don't know what
attribute to use for correct serialization
Any help will be appreciated
Albert Jan