You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Beyer,Nathan" <NB...@cerner.com> on 2002/01/28 02:56:19 UTC

RE: Using external Schema Definition Files with Xerces Java 1.4.4 - Urgent

If it's really urgent, you can try using version 1.4.3. I'm currently using
this feature now with the slightly older version.

-----Original Message-----
From: Raghavendra, Karthik [mailto:kraghavendra@proxicom.com]
Sent: Sunday, January 27, 2002 11:35 AM
To: xerces-j-user@xml.apache.org
Subject: Using external Schema Definition Files with Xerces Java 1.4.4 -
Urgent


Hello All,

I am using Xerces 1.4.4 (for Java) to validate and parse XML file.  The
XML file is created by another process.  I want to validate the XML file
using an external XSD file.  How do I specify the reference to the
external XSD file using the features and properties for the Xerces 1.4.4
parser?  

I have tried setting the following property
http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocati
on, but I get a SAXNotRecognized exception.  I have seen that this is a
bug in beta 2 and there is a patch available, but I need to use 1.4.4.
Is this supported in 1.4.4?  If not, what is the alternative?  Is there
a patch that I can download?

To continue with my development, I have currently suppressed the
property setting and validation and included the reference to the XSD
file within the XML using the  xsi:noNamespaceSchemaLocation= attribute,
but I get the following error: SAXParseException Catalog element must be
declared.  Catalog is the root for the XML file.  I used XML Spy to
validate the document and there were no errors.

Since this is impeding development activity, could someone let me know
asap if there is anything I am doing wrong and possible solutions,
workarounds?  I don't want to start looking for another parser and would
like to stick with 1.4.4

Any and all help is appreciated.

Thanks,
Karthik


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
CONFIDENTIALITY NOTICE

This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
-------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Using external Schema Definition Files with Xerces Java 1.4.4 - Urgent

Posted by Luigi Savini <ls...@akros.it>.
I've got the same problem using SAX with Xerces2_beta4,
property
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation"
is not recognized!

How can i handle xml docs with "noNamespaceSchemaLocation" attribute set
when i have the XSD file stored elsewhere?



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org