Hi Filkorn,
First of all, if you are using Xerces 1.3.1, then you should use 2000/10
instead of 2001.
And noNamespaceSchemaLocation does work according to my test (fGrammar !=
null). If you still have difficulty parsing your xml file, could you post
your .xml and .xsd files along with the error message you got?
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]
Filkorn Roman
<Roman.Filkorn To: [EMAIL PROTECTED]
@swh.sk> cc:
Subject: possible bug ?
06/07/2001
08:58 AM
Please respond
to
xerces-j-dev
Hi,
I am reading code of XMLValidator (I am using Xerces 1.3.1) and I think
there may be possible bug. I am trying to start schema validation:
- my schema has not targetNameSpace
- this type of instance declaration doesn't work
<root
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://localhost:8090/test/Auftrag.xsd"
>
Method validateElementAndAttributes - tries to get the grammar, does not
find it and prints no error message. There is a block like:
if ( fGrammar != null )
{
...
* and here is a 'hack' for my case... *
// REVISIT:
// this is a hack to handle the situation where namespace prefix "" is
bound to nothing, and there
// is a "noNamespaceSchemaLocation" specified, and element
..
}
, but it never goes through fGrammar != null.
I am not sure, looking at it for first day, maybe anybody of you can
explain, how it works. My solution is to make my schema with
targetNameSpace and try again...
Roman Filkorn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]