validering af simpel XML-doc
Hejsa eksperter...jeg skal validere flg. XML doc
<?xml version="1.0"?>
<BookCatalogue xmlns="http://www.publishing.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.publishing.org currency2.xsd">
<Cost currency="INR">11.50</Cost>
<Cost currency="DKK">35.00</Cost>
</BookCatalogue>
Jeg har et grundlæggende *.xsd doc, som giver mig fejl om at elementer og attributter skal deklareres. *. xsd ser ud som flg.
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.publishing.org"
xmlns:target="http://www.publishing.org" elementFormDefault="qualified">
<element name="BookCatalogue">
<complexType>
<element name="Cost">
<simpleContent>
<extension base="string">
<attribute name="currency" type="string"/>
</extension>
</simpleContent>
</element>
</complexType>
</element>
</schema>
Hvad er det lige jeg gør forkert...?