I downloaded the latest version of Xerces that I suppose is 2.9.1

Thanks
Barun 

-----Original Message-----
From: Michael Glavassevich [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 8:40 PM
To: j-users@xerces.apache.org
Subject: Re: Xerces gives General Schema Error | Works with Oracle
Parser

Barun,

Have you tried the latest version of Xerces? The stack trace you've
posted
shows that you're probably using Xerces 1.4.4 or something more ancient.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

"Barun Kumar Yadav" <[EMAIL PROTECTED]> wrote on 01/31/2008 06:11:08
PM:

> Hi All,
> I am trying to moving from Oracle parse to Xerces Parser.
> Using the same XSD and XML if I run the code with Oracle Parser it
> does not give me any error, but when I try it with Xerces it gives
> me General Schem Error. The error trace is below
> General Schema Error: Schema in file:/D:
>
/CPNI/Installs/bea/user_projects/w4WP_workspaces/Untitled/Phase2/resourc
es/config/schema/EDD/jms/Public/test.

> xsd has a different target namespace from the one specified in the
> instance document :.
> org.xml.sax.SAXParseException: General Schema Error: Schema in file:
> /D:
>
/CPNI/Installs/bea/user_projects/w4WP_workspaces/Untitled/Phase2/resourc
es/config/schema/EDD/jms/Public/test.

> xsd has a different target namespace from the one specified in the
> instance document :.
>         at org.apache.xerces.framework.XMLParser.reportError(
> XMLParser.java:1213)
>         at org.apache.xerces.validators.common.XMLValidator.
> reportRecoverableXMLError(XMLValidator.java:1821)
>         at org.apache.xerces.validators.common.XMLValidator.
> resolveSchemaGrammar(XMLValidator.java:2846)
>         at
org.apache.xerces.validators.common.XMLValidator.parseSchemas(
> XMLValidator.java:2747)
>         at org.apache.xerces.validators.common.XMLValidator.
> bindNamespacesToElementAndAttributes(XMLValidator.java:2628)
>         at
org.apache.xerces.validators.common.XMLValidator.callStartElement(
> XMLValidator.java:1218)
>         at org.apache.xerces.framework.XMLDocumentScanner.scanElement(
> XMLDocumentScanner.java:1806)
>         at org.apache.xerces.framework.
>
XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:94
9)
>         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(
> XMLDocumentScanner.java:381)
>         at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
>         at
com.att.cpni.common.util.TestXercesParser.generateXercesDOM(
> TestXercesParser.java:33)
>         at com.att.cpni.common.util.CPNIDomParserTest.
> testIsMandatoryInputAttrPresent(CPNIDomParserTest.java:136)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>
> The XSD I am using is attached with mail. The generated XML that I
> am using is generated using an XML editor, so I don't expect it to be
wrong.
> <<test.xsd>>
> Any ideas what could be the cause?
> Thanks
> Barun [attachment "test.xsd" deleted by Michael
Glavassevich/Toronto/IBM]

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


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

Reply via email to