> 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/Phas
> e2/resources/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/Phas
> e2/resources/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.reportRecoverableXMLE
> rror(XMLValidator.java:1821)
>       at
> org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar(
> XMLValidator.java:2846)
>       at
> org.apache.xerces.validators.common.XMLValidator.parseSchemas(XMLValid
> ator.java:2747)
>       at
> org.apache.xerces.validators.common.XMLValidator.bindNamespacesToEleme
> ntAndAttributes(XMLValidator.java:2628)
>       at
> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLV
> alidator.java:1218)
>       at
> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocument
> Scanner.java:1806)
>       at
> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispa
> tch(XMLDocumentScanner.java:949)
>       at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSc
> anner.java:381)
>       at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
>       at
> com.att.cpni.common.util.TestXercesParser.generateXercesDOM(TestXerces
> Parser.java:33)
>       at
> com.att.cpni.common.util.CPNIDomParserTest.testIsMandatoryInputAttrPre
> sent(CPNIDomParserTest.java:136)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.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
Description: test.xsd

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

Reply via email to