XML Help needed

Associate
Joined
21 Mar 2007
Posts
41
Hi

I'm trying to find out if it's possible to select more than one item from a list in xml schema. I've tried using maxoccurs="unbounded" in a number of places with a complexType and kep getting an error that it can't be used in that way!

Anyone out there know how to do this?
 
As far as I know it's just straight xml using Eclipse as the editor/validator.

What I've got so far (allows me to select one item)

Code:
<schema xmlns="http://www.w3.org/2001/XMLSchema"
 targetNamespace="http://www.example.org/cars"
 xmlns:tns="http://www.example.org/cars"
 elementFormDefault="qualified">

    <simpleType name="availablecolourType">
    	<restriction base="string">
    		<enumeration value="Red"></enumeration>
    		<enumeration value="Blue"></enumeration>
    		<enumeration value="Green"></enumeration>
    		<enumeration value="Black"></enumeration>
    		<enumeration value="Silver"></enumeration>
    	</restriction>
    </simpleType>

There's stuff later on that will display it as an element.

It's proof of concept rather than anything else.
 
Back
Top Bottom