[xsde-users] Enhancement request: support default property

Reynolds, David dpreynolds at srcinc.com
Thu Dec 4 14:02:53 EST 2014


Right now, the default property is ignored when the code is generated. It would be convenient to have the variable initialized with the default value (if supplied) at construction time. For example:

    <xsd:complexType name="LinkSettings">
        <xsd:sequence>
            <xsd:element name="Mode"     type="xsd:unsignedShort" default="3"/>
        </xsd:sequence>
    </xsd:complexType>

Would pre-fill the 'Mode' element with a value of 3 whenever a LinkSettings object was created.

Best regards,

Dave.



More information about the xsde-users mailing list