Hi Ori,
At 09.40 16/08/2006 +0200, Ori Doolman wrote:
Hello,
Since the grammar section is not documented and I couldn't find my
answer elsewhere, I asked a question a few days ago (see my previous
email to this list), but still didn't get any answer.
I'll appreciate your help.
Your approach may work; you could avoid the enumeration of the
elements in the grammar by:
- creating an instance of XMLGrammarPoolImpl
- instanciating the DOMBuilder using
createDOMBuilder(MODE_SYNCHRONOUS, NULL,
XMLPlatformUtils::fgMemoryManager, grammarPool)
- using
grammar->getElemDecl(grammarPool->getURIStringPool()->getId("parlayx_call_notification_local_xsd"),
"handleBusy", NULL, Grammar::TOP_LEVEL_SCOPE)
Another option is building an XSModel using grammarPool->getXSModel().
Then, use XSModel::getElementDeclaration("handleBusy",
"parlayx_call_notification_local_xsd") and examine the element definition.
This because the informations stored in the SchemaGrammar object are
optimized to validate the data, while the XSModel data structure
tries to keep all the informations in the schema (including annotations).
Hope this helps,
Alberto