Expand|Select|Wrap|Line Numbers
- <schema xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://www.abc.com/DDSchema"
- targetNamespace="http://www.abc.com/DDSchema"
- elementFormDefault="qualified"
- version="1.0">
- <complexType name="PSType">
- <element ref="tns:ProfileName" maxOccurs="unbounded"/>
- </complexType>
- <element name="ProfileName" type="string"/>
- <element name="ProfilesSummary" type="tns:PSType"/>
- </schema>
[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:
Expand|Select|Wrap|Line Numbers
- <ProfilesSummary>
- <ProfileName>cat</ProfileName>
- <ProfileName>dog</ProfileName>
- <ProfileName>rat</ProfileName>
- </ProfilesSummary>