xs:Attribute with simpleType isn't generated properly


This is the sample definition (contained in METER element):
<xs:attribute name="PHASE" use="required">
    <xs:documentation>Phases of metering point</xs:documentation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="1" />
      <xs:enumeration value="3" />
It incorrectly generates the PHASE element as a property with METERPHASE type which doesn't exists and private fields (pHASEField) are not generated. Should be simple property of string type, like public string PHASE {get;set;}.


tjanovsky wrote Apr 11, 2011 at 1:38 PM

I made really bad description here.. In another words, it doesn't work with attributes that have some restriction.

wrote Nov 1, 2012 at 2:43 PM

wrote Dec 18, 2012 at 2:25 PM

wrote Feb 22, 2013 at 2:19 AM