Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Schema Parsing Error

From: George Cristian Bina <george@----.-->
To: Tony Fares <Tony.Fares@------.--->
Date: 6/24/2004 1:04:00 PM
Hi Tony,

 > "org.xml.sax.SAXParseException: General Schema Error: Grammar with 
uri > 2: http://www.imsglobal.org/xsd/imscp_rootv1p1p2 , can not found.

That should mean that the parser cannot read the schema 
imscp_rootv1p1p2.xsd associated with your 
http://www.imsglobal.org/xsd/imscp_rootv1p1p2 namespace. From the stack 
trace it seems that you are using the really old Xerces J parser. AFAIK 
that is not maintained anymore, you should switch to Xerces 2 [1].

[1] http://xml.apache.org/xerces2-j/

Hope that helps,
George
-----------------------------------------------
George Cristian Bina
<oXygen/> XML Editor & XSLT Editor/Debugger
www.---.com

Tony Fares wrote:
> Hi,
> 
> I am getting the following error, and I appreciate if someone could help
> 
> "org.xml.sax.SAXParseException: General Schema Error: Grammar with uri 2: http://www.imsglobal.org/xsd/imscp_rootv1p1p2 , can not found.
>         at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060)
>         at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1446)
>         at org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:2736)
>         at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:924)
>         at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1858)
>         at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1001)
>         at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> "
> 
> 
> My instance file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <manifest identifier="MANIFEST1" version="1.1" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:imsmd="http://www.imsglobal.org/xsd/imsmd_v1p2" 
> xmlns="http://www.imsglobal.org/xsd/imscp_rootv1p1p2"
> 
> xmlns:myxrmlext="d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1" 
> xsi:schemaLocation="http://www.imsglobal.org/xsd/imscp_rootv1p1p2 imscp_rootv1p1p2.xsd
>     http://www.imsglobal.org/xsd/imsmd_v1p2 imsmd_v1p2p2.xsd 
> d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1 My_XrMLDRMschema_v1.xsd">
> 
> 
> 
> My Schema file:
> 
> ?xml version="1.0"?>
> <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by hanan (Personal) -->
> <!-- <?xml version="1.0" encoding="UTF-8" ?> -->
> 
> <xsd:schema 
> xmlns:myext="d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1"
> targetNamespace="d:\MyFiles\PHD\ide-userdir\sampledir\test\My_XrMLDRMschema_v1"  
> xmlns:drm="http://www.xrml.org/schema/2001/11/xrml2cx" xmlns:xrml2="http://www.xrml.org/schema/2001/11/xrml2core" xmlns:xe="http://www.xrml.org/schema/2001/11/xrml2sx"   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> 	<xsd:import namespace="http://www.xrml.org/schema/2001/11/xrml2cx" schemaLocation="xrml2cx.xsd"/>
> 
> 

From KSmith@k...  Thu Jun 24 16:09:18 2004
Return-Path: <KSmith@k...>
X-Original-To: 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent