Skip to main content

BIN mv1ks Documentation

  • Author:

  • Version: 9

  • Description: Examples from "Form Optional / Required" section of the form reference: convert whitespace only string value to {absent} using whiteSpace=collapse facet

  • Created: 2014-10-05

  • Modified: 2014-10-06

  • Source:

     Edit Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <complexType name='Form' description='Examples from "Form Optional / Required" section of the form reference: convert whitespace only string value to {absent} using whiteSpace=collapse facet'>
        <field name='FieldStringOptionalEmptyIsNull' minOccurs='0' type='CollapsedString' extra:form.explanation='Optional string field with ctrl.emptyisnull=true and whiteSpace=collapse facet, can submit whitespace only value that are converted to the {absent} (null) value. Whitespace is in any case collapsed. ' extra:form.maybenull='true' extra:ctrl.emptyisnull='true'/>
        <field name='FieldStringRequiredEmptyIsNull' minOccurs='1' type='CollapsedString' extra:form.explanation='Required string field with ctrl.emptyisnull=true and whiteSpace=collapse facet, can submit whitespace only value that are converted to the {absent} (null) value. Whitespace is in any case collapsed.  ' extra:form.maybenull='true' extra:ctrl.emptyisnull='true'/>
    </complexType> 
    <simpleType name='CollapsedString' type='xs:string' >
        <facet name='whiteSpace' value='collapse'/>
    </simpleType>