[xml] default values in the xsd
- From: G & A ONURAL <onurals rogers com>
- To: xml gnome org
- Cc:
- Subject: [xml] default values in the xsd
- Date: Tue, 5 Apr 2005 00:19:49 -0400 (EDT)
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]