You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Zubin Sethna <zs...@technisyst.com.au> on 2008/04/23 08:55:55 UTC
Embedding schema
Hi all
Is it possible to use Xerces-C to parse in the schema definitions read
from a set of .xsd files into a persistent format that I could dump and
then compile into a program? Doing this would allow me to do away with
all those schema files.
Thanks
Zubin
Re: Embedding schema
Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Zubin,
Zubin Sethna <zs...@technisyst.com.au> writes:
> Is it possible to use Xerces-C to parse in the schema definitions read
> from a set of .xsd files into a persistent format that I could dump and
> then compile into a program? Doing this would allow me to do away with
> all those schema files.
Yes, you can serialize the schema grammar into a pre-parsed binary
representation which you can then embed into your application. The
following article on developerWorks explains how to do this:
http://www-128.ibm.com/developerworks/webservices/library/x-xsdxerc.html
Boris
--
Boris Kolpackov, Code Synthesis Tools http://codesynthesis.com/~boris/blog
Open source XML data binding for C++: http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde