[xsd-users] Parsing Question

Boris Kolpackov boris at codesynthesis.com
Tue Jul 22 14:38:44 EDT 2008


Hi Bryan,

Bryan Wilcox <azbwilcox at yahoo.com> writes:

> But what we do is load the schemas from a Windows resource file into 
> a xerces DOMInputSource using a std::string and then use the DomBuilder's
> loadGrammar to load that schema input source into the parser.  I
> searched through the CodeSynthesis code and didn't see any obvious
> way to do this.

For that you will need to use the Xerces-C++ API. Normally, when you
want to do something like this (pre-parse and cache the schemas) you
would also want to re-use the parser to parse multiple documents for
better performance. This is shown in the examples/cxx/tree/cache/ 
example.

Boris




More information about the xsd-users mailing list