On Wed, Mar 5, 2008 at 10:43 AM, Shachar Shemesh <[EMAIL PROTECTED]> wrote:
> Without knowing Xerces too deeply, I think you can do MUCH faster than > it, by feeding the schema before hand. Theoretically (though, the last > time I said this word on this list an actual project came out [1]), you > can write a parser that receives the schema, and produces yacc (or > bison++) output for parsing it. That would, of course, make a compiler > compiler compiler, but who's counting? You can then take the input file, > and follow the usual procedures for generating C++, and then binary, > from them. BTW - since XML schema is just XML, I suspect it should realtivelly easy to parse it and produce code based on it without resorting to bison. e.g. see Perl's XML::Compile::Schema and friends at http://search.cpan.org/search?query=XML%3A%3ACompile%3A%3ASchema&mode=module actually maybe the above can be tweaked to produce C++ code... --Amos
