[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".
<xsd:complexType name="field-info-type">
         <xsd:element name="category" type="field-category-type" />
         <xsd:element name="is-key" type="xsd:boolean" default="false" />


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