Viewpoint Forums
Viewpoint Forums
Viewpoint XML Schema
error:value unbounded of attribute maxoccurs is does not match simple type|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Member |
Hi all,
I have written one schema like <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:complexType name="EP" > <xs:all> <xs:element name="nikash1" type="P1" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="nikash2" type="P2" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="nikash3" type="P3" minOccurs="0" maxOccurs="unbounded"/> </xs:all> </xs:complexType> <xs:complexType name="P1"> <xs:sequence> <xs:element name="policy1" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="P2"> <xs:sequence> <xs:element name="policy2" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="P3"> <xs:sequence> <xs:element name="policy3" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:schema> But its showing error on the maxccures="unbounded". showing as "value unbounded of attribute maxoccurs is does not match simple type" in altova xml spy . The basic requirement is that under the element EP all the elements i.e. nikash1, nikash2, nikash3 should occure in any order and any number of times. Can anybody pls help to solve this? Thanks in advance. Thanks & Regards Nikash |
||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint XML Schema
error:value unbounded of attribute maxoccurs is does not match simple type
