Cancel this. The correct configuration was:

XML:
<EMSDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://www.nemsis.org"; 
xsi:schemaLocation="http://www.nemsis.org/XSD/EMSDataSet4.xsd";>

XSD:
Same

*** Code: (this was the change needed)
http://apache.org/xml/properties/external-noNamespaceScemaLocation, 
http://www.nemsis.org http://www.nemsis.org/XSD/EMSDataSet4.xsd)

That is, both the schemaLocation URL and the xmlns URL (or is it the namespace 
URL that matters?). If anyone has an idea why (I couldn't find this anywhere) 
please reply.

Thanks.

Adam C. Mihlfried
Software Developer
Center for Emergency Medicine
10 Allegheny County Airport, West Mifflin, PA 15122

Email: [EMAIL PROTECTED]

-----Original Message-----
From: Mihlfried, Adam 
Sent: Friday, July 02, 2004 5:08 PM
To: [EMAIL PROTECTED]
Subject: cvc-elt.1: Cannot find the declaration of element 'EMSDataSet'.

I researched everywhere I could but cannot find the mistake when I receive this 
error:
cvc-elt.1: Cannot find the declaration of element 'EMSDataSet'.

Here are some details. 

1) My "NHTSA12190.xml" file begins like this:

<EMSDataSet xmlns="http://www.nemsis.org"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="http://www.nemsis.org/XSD/EMSDataSet4.xsd";>
<Header>
                        
                        <D01_01>123</D01_01>
                        <D01_03>42</D01_03>

2) My "EMSDataSet4.xsd" document begins like this:
  <?xml version="1.0" encoding="UTF-8" ?> 
 <xs:schema targetNamespace="http://www.nemsis.org"; 
xmlns="http://www.nemsis.org"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:include schemaLocation="E00_ReferenceTables.xsd" />
  <xs:include schemaLocation="E01_RecordInformation.xsd" /> 
  <xs:include schemaLocation="E02_UnitAgencyInformation.xsd" />

3) In my code I am setting thte Features:    
         "http://xml.org/sax/features/validation";, true);
        "http://apache.org/xml/features/validation/schema";, true
        "http://apache.org/xml/features/validation/schema-full-checking, true

        and Properties:
        http://apache.org/xml/properties/external-noNamespaceScemaLocation, 
"D:\InetPub_Vault\emsi_mx\xml\EMSDataSet4.xsd" (I've also tried not setting 
this property)

Thanks!


Adam C. Mihlfried
Software Developer
Center for Emergency Medicine
10 Allegheny County Airport, West Mifflin, PA 15122

Email:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to