I have written the following schema file:
[code=xml]
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http ://www.abc.com/DDSchema"
targetNamespace ="http://www.abc.com/DDSchema"
elementFormDefa ult="qualified"
version="1.0">
<complexType name="PSType">
<element ref="tns:Profil eName" maxOccurs="unbo unded"/>
</complexType>
<element name="ProfileNa me" type="string"/>
<element name="ProfilesS ummary" type="tns:PSTyp e"/>
</schema>
[/code]
while parsing i am getting the following exception:
[ERROR] s4s-elt-invalid-content.1: The content of 'PSType' is invalid. Element 'element' is invalid, misplaced, or occurs too often.
I want to write the above schema for the sample xml:
[code=xml]
<ProfilesSummar y>
<ProfileName>ca t</ProfileName>
<ProfileName>do g</ProfileName>
<ProfileName>ra t</ProfileName>
</ProfilesSummary >
[/code]
Can someone please help? Thanks a lot !
[code=xml]
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http ://www.abc.com/DDSchema"
targetNamespace ="http://www.abc.com/DDSchema"
elementFormDefa ult="qualified"
version="1.0">
<complexType name="PSType">
<element ref="tns:Profil eName" maxOccurs="unbo unded"/>
</complexType>
<element name="ProfileNa me" type="string"/>
<element name="ProfilesS ummary" type="tns:PSTyp e"/>
</schema>
[/code]
while parsing i am getting the following exception:
[ERROR] s4s-elt-invalid-content.1: The content of 'PSType' is invalid. Element 'element' is invalid, misplaced, or occurs too often.
I want to write the above schema for the sample xml:
[code=xml]
<ProfilesSummar y>
<ProfileName>ca t</ProfileName>
<ProfileName>do g</ProfileName>
<ProfileName>ra t</ProfileName>
</ProfilesSummary >
[/code]
Can someone please help? Thanks a lot !
Comment