|
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
|
- Re: possible bug ? Filkorn Roman
- Re: possible bug ? sandygao
