XSD type:
<xsd:simpleType name="TypeName"> <xsd:restriction base="xsd:hexBinary"> <xsd:length value="length"/> </xsd:restriction> </xsd:simpleType>
Generated C code:
typedef struct TypeName {
OSUINT32 numocts;
OSOCTET data[length];
} TypeName;
Generated C++ code:
class TypeName : public OSRTBaseType {
OSUINT32 numocts;
OSOCTET data[length];
...
} ;
Note: in the static case, the maxLengthfacet will cause the same code to be generated with maxLengthused for the size of the array.