[xsd-users] Empty enumeration results in cxx value

Stephen James Stephen.James at genband.com
Tue Nov 17 07:21:32 EST 2009


I want to be able to limit the values in the element, but also allow the empty element.

<xs:simpleType name="busyfreestatusType">
      <xs:restriction base="xs:string">
        <xs:enumeration value=""/>
        <xs:enumeration value="busy"/>
        <xs:enumeration value="free"/>
      </xs:restriction>
  </xs:simpleType>

My values end up being -

  enum value
  {
    cxx,
    busy,
    free
  };

I understand that there is no name for "" but is the value cxx controllable?
Stephen James
Sr. Software Engineer

GENBAND Inc.
3605 E. Plano Parkway
Plano, TX 75074 USA
office            +1.972-521-5858
mobile         +1.214-686-8754
stephen.james at genband.com


 




More information about the xsd-users mailing list