<?xml version="1.0" encoding="utf-8"?> <xs:schema id="Artworks" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aw="http://www.fourthwish.co.uk/data/Artworks.xsd" xmlns="http://www.fourthwish.co.uk/data/Artworks.xsd" targetNamespace="http://www.fourthwish.co.uk/data/Artworks.xsd" elementFormDefault="qualified" > <xs:element name="artworks"> <xs:complexType> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="artwork" type="ArtworkType"> <xs:unique name="uniqueRef"> <xs:selector xpath="."/> <xs:field xpath="@ref"/> </xs:unique> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="ArtworkType"> <xs:sequence> <xs:element name="title" type="xs:string"/> </xs:sequence> <xs:attribute name="ref" type="xs:nonNegativeInteger"/> </xs:complexType> </xs:schema>
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <artworks xmlns="http://www.fourthwish.co.uk/data/Artworks.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.fourthwish.co.uk/data/Artworks.xsd Artworks.xsd" > <artwork ref="1"> <title>Title String</title> </artwork> <artwork ref="1"> <title>Title String</title> </artwork> </artworks
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)