[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Libxml not catching schema error
- From: Boris Kolpackov <boris codesynthesis com>
- To: xml gnome org
- Subject: Re: [xml] Libxml not catching schema error
- Date: Thu, 8 Feb 2007 19:22:21 +0000 (UTC)
Hi Yong,
"Yong Chen \(yongche\)" <chen cisco com> writes:
> <xs:complexType name="interface_type">
> <xs:sequence>
> <xs:element name="ifid" minOccurs="1" type="xs:string"/>
> <xs:element name="ifid" minOccurs="1" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
This is valid as long as the two elements with the same name have
the same type (XML Schema "consistent declaration rule"). The
fragment above is equivalent to:
<xs:complexType name="interface_type">
<xs:sequence>
<xs:element name="ifid" minOccurs="2" maxOccurs="2" type="xs:string"/>
</xs:sequence>
</xs:complexType>
hth,
-boris
--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]