>

Hi Neil,

thx a lot for replying speedily :) Your explanation gives me new understanding
on how this parser works!

> the above description isn't too intimidating...  Things really aren't that
> bad when you start to dig down into the code a bit.

I'm trying to read the source code for a while but I'm new to programming and I
think I need further help with it... :( Sorry..

Just a little question:
Seems that I need GrammarResolver to get Grammar representation of XMLSchema.
GrammarResolver has method getGrammar(namespaceKey). I think namespaceKey means
the namespace used in XML document to refer the XMLSchema. But what if I don't
use namespace ? I tried to put empty string into the namespaceKey and
getGrammar returned null. Does it mean I have to use namespace in the XML
document?

What I'm thinking is to use getGrammarDocument() or getContentSpec() from
Grammar to have the Grammar representation afterwards. Then I can use it to
somehow check any editings attempt against the XMLSchema before edits are
accepted and DOM tree is changed. Any comments and/or suggestions is really
appreciated.

ow, and thx Ken for RevalidatingParser.java code. Since it is from xml4j, guess
it only works with DTD.. ?

thx again,
cath

Reply via email to