Hi Dale, EXT-Pennington, Dale K <[EMAIL PROTECTED]> writes:
> Since I currently have multiple Schema files, would I call loadGrammar > multiple times (1 per Schema file) or would I need to produce a new > Schema file that was the union of the other Schema file ? Hm, good questions. I just checked the caching code and it appears that loadGrammar uses schema's target namespace as a key to decide if a grammar for a particular namespace is already present. This means that if you try to load two schemas that have the same target namespace then the second schema will be ignored. This is easy to overcome, however, by creating a "root" schema that includes all other schemas for a particular namespace. You can then load that schema and all included schema will be loaded automatically. For schemas that use different namespaces you can simply call loadGrammar for each file. Boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding
