Hi all,
I have the need to generate C# classes from XSD schemas, and the XSD.exe
tool is just (almost) great for that. I said "almost" because it seems that
every XML Schema datatype other than boolean is rendered as a String
field/property.
As an example, I am getting:
[System.Xml.Serialization.XmlElementAttribute(DataT ype="positiveInteger")]
public string Port {
get {
return this.portField;
}
set {
this.portField = value;
}
}
I would like to have:
[System.Xml.Serialization.XmlElementAttribute(DataT ype="positiveInteger")]
public UInt32 Port {
get {
return this.portField;
}
set {
this.portField = value;
}
}
More generally, is it possible to have datatype mapping include other value
types, such as Int32, or DateTime?
Thanks in advance, kind regards,
Vanni