I really can't manage to do it with 1.3.1
I have a valid XML document who is formatted according a valid XSD file
(both where validated with XML SPY 3.5). 
in the XML document I have the following header:
<Remise xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="ShemaRemise.xsd">

the file ShemaRemise.xsd (witch is in the same directory than the xml file)
starts like this:

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema";
elementFormDefault="qualified">

<xsd:element name="NOREMI" type="xsd:int" nullable="true"/>

 

when I try to parse it using the SAXCount sample file, it gives me the
following errors:

[Error] test3.xml:2:114: Element type "Remise" must be declared.
[Error] test3.xml:2:114: Attribute "xsi:noNamespaceSchemaLocation
red for element type "Remise".
[Error] test3.xml:3:10: Element type "NOREMI" must be declared.
[Error] test3.xml:4:11: Element type "REMDATE" must be declared.
[Error] test3.xml:5:11: Element type "CLTYPE1" must be declared.

 

but when I parse the file personal-shema.xml (it uses the 1999 xsd format)
which is provided with XML4J-3_1_1 everything is working fine. I was
thinking that it was because XML4J-3_1_1 could not handle 2000 format for
xml documents. maybe I'm wrong.

Could anyone help me by providing a simple java program which is actually
validating a XML document against a schema (based on 2000/10 specification).

Regards,

Martial

-----Original Message-----
From: Jeff Winter [mailto:[EMAIL PROTECTED]
Sent: jeudi 14 juin 2001 15:05
To: '[EMAIL PROTECTED]'
Subject: RE: does xerces handles http://www.w3.org/2000/10/XMLSchema ?




1.3.1 did. 
1.4 now uses http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema>  

Jeffrey Winter | z e f e r | 123 Beach St | Boston | MA | 02111 |
617.245.7130 


-----Original Message----- 
From: Delahaye, Martial (CAP, CMF, COFRAMI) 
[ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] 
Sent: Thursday, June 14, 2001 7:03 AM 
To: [EMAIL PROTECTED] 
Subject: does xerces handles http://www.w3.org/2000/10/XMLSchema
<http://www.w3.org/2000/10/XMLSchema>  ? 


I am using XML4J-3_1_1 
I think the subject is enough explicit... I am using the sample code 
SAXCount to validate an XML document against a DTD. it seems to be working 
fine with the 1999 version of Schema but not with the 2000 version. Is there

a solution ? 
maybe the next version of xerces handles it, so where could I find it ? 
Thanks, 

Martial 

--------------------------------------------------------------------- 
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