[xml] default values in the xsd



I am using the "default" in one of my complex type definitions in my xsd, as shown in the snippet below. How can I get the value of the "default" when I parse the xml document (written against my schema) ? Assuming that the instance document doesn't override the value of the "default".
 
Thanks.
 
Gul
 
xsd:
====
<xsd:complexType name="field-info-type">
    <xsd:sequence>
          ...
         <xsd:element name="category" type="field-category-type" />
         <xsd:element name="is-key" type="xsd:boolean" default="false" />
   <xsd:sequence>
</xsd:complexType>
 
 

 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]