Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    error:value unbounded of attribute maxoccurs is does not match simple type

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
5-star Rating (1 Vote) Rate It!  Login/Join 
Junior Member
Posted
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
 
Posts: 1 | Registered: July 28, 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    error:value unbounded of attribute maxoccurs is does not match simple type