Namespace kædes sammen med xml
Jeg har problemer med at kæde denne xml sammen med min xsd, og tænkte på om jeg kunne få en hånd med det :)<?xml version="1.0" encoding="ISO-8859-1"?>
<collection>
<point>
<address />
</point>
<point>
<note />
<address />
<note />
<note />
</point>
<point>
<address />
<note />
</point>
<point>
<longitude />
<address />
</point>
<point>
<note />
<longitude />
<note />
<address />
<note />
</point>
<point>
<note />
<latitude />
<note />
<note />
<longitude />
</point>
<point>
<note />
<note />
<note />
<latitude />
<note />
<longitude />
</point>
<point>
<latitude />
<longitude />
</point>
<point>
<note />
<latitude />
<note />
<longitude />
<note />
</point>
</collection>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="collection">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="point"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="point">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="note"/>
<xs:choice>
<xs:sequence>
<xs:element minOccurs="0" ref="longitude"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="note"/>
<xs:element ref="address"/>
</xs:sequence>
<xs:sequence>
<xs:element ref="latitude"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="note"/>
<xs:element ref="longitude"/>
</xs:sequence>
</xs:choice>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="note"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="latitude" type="xs:string"/>
<xs:element name="longitude" type="xs:string"/>
<xs:element name="address" type="xs:string"/>
<xs:element name="note" type="xs:string"/>
</xs:schema>