Hi there,

I'm working on some code that adds a set of schemas to an XMLGrammarPool
and then lock the pool. When an XML document is received it will attempt
to validate the XML using the corresponding schema from the pool. I'm
having some trouble implementing this which has lead me to the following -

I've noticed something strange with the XMLGrammarPreparser. Basically I
call preparseGrammar() for schema1.xsd and print out the grammar
description of the grammar that is returned. Then I call preparseGrammar()
for schema2.xsd and print out the grammar description of the grammar that
is returned. It appears that the same object is returned from both. Maybe
I'm missing something here but I would have expected these descriptions
would not be the same.

I've been able to reproduce this using the XMLGrammarBuilder example. Just
add a System.out after the call to preparseGrammar() on line 253. Here is
the output I get when running this -

>java -classpath .;../../resourcestore/jars/xercesimpl.jar
xni.XMLGrammarBuilder -a c:\workspace\schema1.xsd
c:\workspace\schema2.xsd

:c:\workspace\schema1.xsd:::
:c:\workspace\schema1.xsd:::
>

Can someone explain to me why this happens? I've spent most of the day
looking at it but I can't explain what is happening.

Thanks,
Dave.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to