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>

Hello,

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"
elementFormDefault="qualified">
	<xsd:include schemaLocation="C://vocdtnopatterns.xsd"/>
	<xsd:element name="Device" type="COCT_MT140000.Device"/>
	<xsd:complexType name="COCT_MT140000.Device">
		<xsd:sequence>
			<xsd:element name="id" type="II" minOccurs="0"
maxOccurs="unbounded"/>
			<xsd:element name="code" type="CE"
minOccurs="0"/>
			<xsd:element name="manufacturerModelName"
type="SC" minOccurs="0"/>
			<xsd:element name="softwareName" type="SC"
minOccurs="0"/>
			<xsd:element name="playedRole"
type="COCT_MT140000.Role" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
</xsd:schema>

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"/>
	<manufacturerModelName/>
	<softwareName/>
	<playedRole typeID="2">
		<scopingChoice realmCode="TD">
			<scopingOrganization>
				<id root="226"/>
				<name/>
			</scopingOrganization>
		</scopingChoice>
	</playedRole>
</Device>




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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT