Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


schema namespace error in xerces

From: "Karen Smith" <KSmith@------.--->
To: <xmlschema-dev@--.--->
Date: 5/19/2004 10:42:00 AM
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@k...

From ht@i...  Thu May 20 05:16:54 2004
Return-Path: <ht@i...>
X-Original-To: xmlschem


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent