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 Sridhar Raju Y <sr...@infy.com> on 2001/11/27 06:56:10 UTC

Please help me

Hi all,
  I am facing the problem while parsing the XML Document..
I am sending the XMLDocument as well as schema..
can you please tell me what could be the problem.
 
I am getting the following error
 
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47: General
Schema Error: Grammar with uri: http://www.w3.org/2001/XMLSchema , can
not be found; schema namespace may be wrong:  Xerces supports schemas
from the " http://www.w3.org/2001/XMLSchema" namespace or the instance
document's namespace may not match the targetNamespace of the schema.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47: Element
type "xsd:element" must be declared.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47:
Attribute "name" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47:
Attribute "type" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55: General
Schema Error: Grammar with uri: http://www.w3.org/2001/XMLSchema , can
not be found; schema namespace may be wrong:  Xerces supports schemas
from the " http://www.w3.org/2001/XMLSchema" namespace or the instance
document's namespace may not match the targetNamespace of the schema.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55: Element
type "xsd:element" must be declared.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55:
Attribute "name" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55:
Attribute "type" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=56: General
Schema Error: Grammar with uri: http://www.w3.org/2001/XMLSchema , can
not be found; schema namespace may be wrong:  Xerces supports schemas
from the " http://www.w3.org/2001/XMLSchema" namespace or the instance
document's namespace may not match the targetNamespace of the schema.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=56: Element
type "xsd:element" must be declared.
 
Any pointer will be great.
 
Thanks,
Sridhar.
 
 

Sridhar Raju.Y,
Infosys Technologies Ltd.,
Plot # E/4, Infocity, Bhubaneswar.
Ph: 91-674-320 001/050 extn 2644
Mail: sridhar_y@infy.com

 

 

Re: Please help me

Posted by Minh Kama Yie <mi...@nuix.com.au>.
For your first two errors, you may want to include the declaration of the 
namespace "http://www.w3.org/XMLSchema-instance" and the "schemaLocation" 
attribute in this namespace. ie. include in the root element of your schema 
docuemnt:


<xsd:schema 
...
xmlns:xsi="http://www.w3.org/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema 
http://www.w3.org/2001/XMLSchema.xsd"
....
>

please note that the schemaLocation attribute expects a list of uri-value 
pairs where the value describes the location of the actual schema document 
for the uri specified.

On Tuesday 27 November 2001 16:56, you wrote:
Hi all,
  I am facing the problem while parsing the XML Document..
I am sending the XMLDocument as well as schema..
can you please tell me what could be the problem.

I am getting the following error

Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47: General
Schema Error: Grammar with uri: http://www.w3.org/2001/XMLSchema , can
not be found; schema namespace may be wrong:  Xerces supports schemas
from the " http://www.w3.org/2001/XMLSchema" namespace or the instance
document's namespace may not match the targetNamespace of the schema.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47: Element
type "xsd:element" must be declared.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47:
Attribute "name" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=47:
Attribute "type" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55: General
Schema Error: Grammar with uri: http://www.w3.org/2001/XMLSchema , can
not be found; schema namespace may be wrong:  Xerces supports schemas
from the " http://www.w3.org/2001/XMLSchema" namespace or the instance
document's namespace may not match the targetNamespace of the schema.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55: Element
type "xsd:element" must be declared.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55:
Attribute "name" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=55:
Attribute "type" must be declared for element type "xsd:element".
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=56: General
Schema Error: Grammar with uri: http://www.w3.org/2001/XMLSchema , can
not be found; schema namespace may be wrong:  Xerces supports schemas
from the " http://www.w3.org/2001/XMLSchema" namespace or the instance
document's namespace may not match the targetNamespace of the schema.
Error:
URI=file:///gsdotcom/choreo/users/sridhar/promega/choreo/packages/reposi
tory/com/infy/choreo/repository/Final_BPML_Document.xml Line=56: Element
type "xsd:element" must be declared.

Any pointer will be great.

Thanks,
Sridhar.



Sridhar Raju.Y,
Infosys Technologies Ltd.,
Plot # E/4, Infocity, Bhubaneswar.
Ph: 91-674-320 001/050 extn 2644
Mail: sridhar_y@infy.com

----------------------------------------
Content-Type: text/xml; charset="iso-8859-1"; name="MyDoc.xml"
Content-Transfer-Encoding: base64
Content-Description: MyDoc.xml
----------------------------------------

----------------------------------------
Content-Type: application/octet-stream; charset="iso-8859-1"; 
name="MysXSD.xsd"
Content-Transfer-Encoding: base64
Content-Description: MysXSD.xsd
----------------------------------------

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="Attachment: 3"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 
Regards, 

Minh Kama Yie
Nuix

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