W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2004

schema namespace error in xerces

From: Karen Smith <KSmith@kevric.com>
Date: Wed, 19 May 2004 14:42:23 -0400
Message-ID: <6D876AD43A7AB2458A09FF20612AB033A44783@exmail1.kevric.com>
To: <xmlschema-dev@w3.org>


I am currently getting an error in Xerces when validating my xml
instance document that reads:
 [Error] 14000jallora4.xml:2:121: s4s-elt-schema-ns: The namespace of
element 'Device' must be from the schema namespace,
'http://www.w3.org/2001/XMLSchema'.  I believe this element is already
in that namespace because it uses the associated prefix for that
namespace.  Can anyone help me with this?  Here's the schema 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	<xsd:include schemaLocation="C://vocdtnopatterns.xsd"/>
	<xsd:element name="Device" type="COCT_MT140000.Device"/>
	<xsd:complexType name="COCT_MT140000.Device">
			<xsd:element name="id" type="II" minOccurs="0"
			<xsd:element name="code" type="CE"
			<xsd:element name="manufacturerModelName"
type="SC" minOccurs="0"/>
			<xsd:element name="softwareName" type="SC"
			<xsd:element name="playedRole"
type="COCT_MT140000.Role" minOccurs="0" maxOccurs="unbounded"/>

And here's the xml document

<?xml version="1.0" encoding="UTF-8"?>
<Device xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hl7-org:v3 C:\\COCT_MT140000.xsd">
	<id root="2"/>
	<code code="BILL"/>
	<playedRole typeID="2">
		<scopingChoice realmCode="TD">
				<id root="226"/>

Karen L. Smith
Data Conversion Specialist
The Kevric Company, Inc.
8484 Georgia Ave., Suite 550
Silver Spring, MD 20910
(301) 588-6000 x247
Fax (301)588-1777
email KSmith@kevric.com
Received on Wednesday, 19 May 2004 14:44:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:05 UTC