RE: validating xml schemas with the standard schema

I used to have this kind of problem. Actually schema syntax is a bit
confusing. There are some headers from my both kinds of files (XSD and XML
using it)

Basic file includes all symple, complex, abstract and so on types. Its
name's Common.xsd. Its header is:

<xsd:schema xmlns:xsd=""

Another schema file that uses some types from previous one. Its file name's
ZMoney. The header is:

<xsd:schema xmlns:xsd=""

and to include definitions of ZCommon I use next line:

<xsd:import namespace="urn:zoogi:schemas:ZCommon"

Finally in an instance XML document I can use next header:

<RootTag  xmlns:xsi=""

But this XML document does NOT use namespaces. As you can see I use RootTag
but not ZMoney:RootTag.

//Roman Rytov

-----Original Message-----
From: []On
Behalf Of Paul Jakubik
Sent: Monday, June 04, 2001 23:45 
Subject: Re: validating xml schemas with the standard schema

I am still having problems getting things to work. I
am using Xerces 1.4.0. I use a header that looks
something like this:


I keep getting errors that look like:
org.xml.sax.SAXParseException: General Schema Error:
Grammar with uri 2: ,
can not be found.

Am I missing something obvious? I need to read the
schema locally as opposed to going over the net, so I
am trying to set the location to a local file where I
have copied it. So what is the right way to set
attributes in the schema to make this happen?

Any help would be appreciated,


Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!

Received on Tuesday, 5 June 2001 02:50:47 UTC