Maik,
I tried seeting the root element as follows:
<RegistrySubmission xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://diides.ncr.disa.mil/xmlreg/XSD/registry.xsd">
but got an error that said: The namespce name for 'schema' must be
http://www.w3.org/2001/XMLSchema.
So I changed the schema to http://www.w3.org/2001/XMLSchema and got the
following message:
Element type "RegistrySubmission" must be declared.
Did you have to change anything in your Java program when you upgraded from
1.3.1 to 1.4.2?
Thanks
Randy
-----Original Message-----
From: Maik Weber [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 2:00 PM
To: [EMAIL PROTECTED]
Subject: Re: Does XSD work with xerces.jar V1.4.2?
Hello,
just change the statement in the rootelement to
<RegistrySubmission xmlns:xsi = "http://www.w3.org/2001XMLSchema-instance"
I think thats your problem.
cu
maik
> I just upgraded my xerces.jar file from V1.3.1 to V1.4.2. My test XML/XSD
> files no longer validate. I get the following error : Element type
> "RegistrySubmission" must be declared.
> Registry Submission is my root tag. Below is a snippet from the beginning
> of
> my XML file:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <RegistrySubmission xmlns:xsi =
> "http://www.w3.org/2000/10/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation=
> "http://diides.ncr.disa.mil/xmlreg/XSD/registry.xsd">
>
> and below is a snippet from the beginning of my XSD file:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
> <xsd:element name="RegistrySubmission">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element ref="Submitter"/>
> <xsd:element ref="Package"/>
> <xsd:element ref="Transactions"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
>
> Also, When I tried to change my instance document from
> "http://www.w3.org/2000/10/XMLSchema-instance" to
> "http://www.w3.org/2001/XMLSchema-instance"
> while using the V1.3.1 xerces.jar file, I got the same error!
>
> Any ideas on how I can get my xml file to validate with 1.4.2 and the 2001
> XML Schema instance?
>
> Thanks in Advance
>
> Randy Moore
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
============================================
"M�gen die Falten im Gesicht eines Menschen
Spuren sein des Lachens !!"
Mail : [EMAIL PROTECTED]
Homepage: http://www.webis-world.de (Schau doch mal vorbei !)
ICQ : #57313947
---------------------------------------------------------------------
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]