I have a syntax error in my code for importing schemas' but I cant see it.
On its own, the schema validates.
When I try to use it wihtin a xml file to validate it, It complains that the schema contains a namespace error, and that I cannot import into the existing namespace. Changing the namespace though, just makes the xsd invalid!
the xml file header is
Any help welcome
K
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL]
xmlns:BTDictionary="[URL unfurl="true"]http://localhost/BT_XML/Dictionary"[/URL]
xmlns:BTDoc="[URL unfurl="true"]http://localhost/BT_XML"[/URL]
targetNamespace="[URL unfurl="true"]http://localhost/BT_XML/Dictionary"[/URL]
elementFormDefault="qualified">
<xsd:import namespace="[URL unfurl="true"]http://localhost/BT_XML"[/URL] schemaLocation="documentationSchema.xsd"/>
On its own, the schema validates.
When I try to use it wihtin a xml file to validate it, It complains that the schema contains a namespace error, and that I cannot import into the existing namespace. Changing the namespace though, just makes the xsd invalid!
the xml file header is
Code:
<BTDictionary:dictionary xmlns:BTDictionary="[URL unfurl="true"]http://localhost/BT_XML"[/URL]
xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL]
xsi:schemaLocation = "[URL unfurl="true"]http://localhost/BT_XML[/URL] dictionarySchema.xsd">
Any help welcome
K