Hi, Short story: Is it possible serialize out one binary file per schema file and then later just load in a subset of the binary files into an XMLGrammarPool?
Longer story: Assume we have some software that makes use of dynamically loaded plugins where each plugin has a schema that defines an xml element that belongs to a certain substitutionGroup. It would be nice to be able to create binary representation of the schema grammar and store it inside the plugin. I have seen these two Xerces functions XMLGrammarPool::serializeGrammars(BinOutputStream *const) XMLGrammarPool::deserializeGrammars(BinInputStream *const) It looks like the normal way of using these two functions is to first load all schema files and then call serializeGrammars once and later call deserializeGrammars once. By the way, I found a nice example of how to do exactly that in the "embedded" example in CodeSynthesis XSD. http://scm.codesynthesis.com/?p=xsd/xsd.git;a=tree;f=examples/cxx/tree/embedded;hb=HEAD But is it possible to save each binary grammar representation seperately and at a later time load them seperately? cheers, Erik Sjölund