How will you define a default value, Yellow, for a simple element of the XML schema?
A. <xs:element name="ColorName" type="xs:string" default="Yellow"/>
B. <xs:element name='ColorName' default='Yellow'/>
C. <xs:element ID='ColorName' default='Yellow'/>
D. <xs:element ID="ColorName" name="Color" type="xs:string" default="Yellow"/>
Answer:A
How will you define a default value, Yellow, for a simple element of the XML schema?
A. <xs:element name="ColorName" type="xs:string" default="Yellow"/> B. <xs:element name='ColorName' default='Yellow'/> C. <xs:element ID='ColorName' default='Yellow'/> D. <xs:element ID="ColorName" name="Color" type="xs:string" default="Yellow"/>
Explanation: In XML schema, a default value is automatically assigned to the element when no other value is specified.