Hi Cath,

The getGrammarDocument method returns a Document object, which is one of
the things that building a plain vanilla DOM tree from the schema document
will provide you with.  Xerces needs to build such a thing itself when it
reads in the grammar, since it builds its internal representation of a
schema grammar by traversing a DOM tree created from the schema.

As to the API docs:  Yes, they definitely need work, there's no question
there.  Perhaps a good way to become familiar with what the methods do
would be to undertake to fix some of the API documentation limitations?  If
you (or anybody else) were to undertake such a thing and submit some
patches I'd love to commit them.

Best wishes,
neil

Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  416-448-3519, T/L 778-3519
E-mail:  [EMAIL PROTECTED]



ibrahim <[EMAIL PROTECTED]> on 02/15/2001 06:02:55 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: trouble with getGrammarDocument()


Hi Neil,

> I would point out, though, that
> you're perfectly free to read the schema document into a DOM tree
yourself;
> you'll get no less information this way.  Even if the fDocument field did
> have useful data it still wouldn't help you access Xerces representation
of
> the grammar.

What I actually tried to do with the code is probing what
getGrammarDocument()
will give me. I was hoping it to be a valid template of some sort for the
XML
document, based on XML Schema. But if I understand you correctly, this
fDocument will give just the same thing the DOMParser#parse(schema
document)
will give me then.. ? Argh..

> But as to your problem:  Your best bet is to look through the code of
> XMLValidator

will try to do so. My 'programming-experience'  is only 2 months old so
far, so
I hope you won't be bothered with a lot more questions from me.. One small
newbie question; is there any plan to elaborate the API documentation in
near
future.. ?

> Keep me informed on how your project goes.  You've picked a very tough
> problem to work on

Gaaa...

> Best of luck,

Will need it :P

and thx for the pointer. I'll look at the XMLValidator later today :)
cath


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





Reply via email to