S
Steven Quail
Hi to all,
I have just started looking at XML.Serialization classes and would
like to know how I set an attribute for an XML element.
For example, I want my XML doc to look like the following:
<Person>
<Name>
<FirstName>John</FirstName>
<LastName>Smith</LastName>
</Name>
<Address>
<Number>127</Number>
<Street Name = "Church", Area = "Arlington" />
</Address>
</Person>
What I am interested in setting are the attributes
<Street Name = "Church", Area = "Arlington" />
I tried using System.XML.Serialization.XMLAttribute but it sets the
attributes as attributes of Person.
TIA
Steven.
I have just started looking at XML.Serialization classes and would
like to know how I set an attribute for an XML element.
For example, I want my XML doc to look like the following:
<Person>
<Name>
<FirstName>John</FirstName>
<LastName>Smith</LastName>
</Name>
<Address>
<Number>127</Number>
<Street Name = "Church", Area = "Arlington" />
</Address>
</Person>
What I am interested in setting are the attributes
<Street Name = "Church", Area = "Arlington" />
I tried using System.XML.Serialization.XMLAttribute but it sets the
attributes as attributes of Person.
TIA
Steven.