Definition Type: Attribute
Name: default
Namespace: http://www.xml-cml.org/schema
Type: string:http://www.w3.org/2001/XMLSchema
Containing Schema: schema.xsd
Use (Optional)
Documentation:
default value in an enumeration. A non-whitespace string (value is irrelevant) indicates that the content of this enumeration is the default value (usually of a scalar). It is an error to have more than one default. If the scalar in an instance document has no value (i.e. is empty or contains only whitespace) its value is given by the default. If the scalar in the instance is empty and no enumerations have a default attribute, an application may throw an error.
Collapse XSD Schema Diagram:
XSD Diagram of default in schema schema_xsd (Chemical Markup Language (CML))
Collapse XSD Schema Code:
<xsd:attribute name="default" type="xsd:string" id="att.default">
    <xsd:annotation>
        <xsd:documentation>
            <h:div class="summary" xmlns:h="http://www.w3.org/1999/xhtml">default value in an enumeration.</h:div>
            <h:div class="description" xmlns:h="http://www.w3.org/1999/xhtml">A non-whitespace string (value is irrelevant) indicates that the content of this enumeration is the default value (usually of a scalar). It is an error to have more than one default. If the scalar in an instance document has no value (i.e. is empty or contains only whitespace) its value is given by the default. If the scalar in the instance is empty and no enumerations have a default attribute, an application may throw an error.</h:div>
        </xsd:documentation>
    </xsd:annotation>
</xsd:attribute>