hello,
This is my sample (simplified):
public class Binom
{
[XmlAttribute("r ange")]
public string _Value;
[XmlAttribute("n ame")]
public string Label;
}
public class Property
{
[XmlAttribute("n ame")]
public string propertyName;
public Binom DefaultAttribut e;
}
Property serialize as:
<Properties name="foo">
<DefaultAttribu te value="12345678 9" name="range" />
</Properties >
Is is possible to get rather:
<foo range="12345678 9"/>
or eventualy:
<Properties name="foo">
<DefaultAttribu te range="12345678 9" />
</Properties >
Just using the default Xml serailization?
Thank you
Happy new years
This is my sample (simplified):
public class Binom
{
[XmlAttribute("r ange")]
public string _Value;
[XmlAttribute("n ame")]
public string Label;
}
public class Property
{
[XmlAttribute("n ame")]
public string propertyName;
public Binom DefaultAttribut e;
}
Property serialize as:
<Properties name="foo">
<DefaultAttribu te value="12345678 9" name="range" />
</Properties >
Is is possible to get rather:
<foo range="12345678 9"/>
or eventualy:
<Properties name="foo">
<DefaultAttribu te range="12345678 9" />
</Properties >
Just using the default Xml serailization?
Thank you
Happy new years
Comment