Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Namespaces in Attribute Value.. >Thread Next - XSV to validate schema instance schema namespace error in xercesTo: <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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
