[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-users
Subject:    Re: Embedding schema
From:       Boris Kolpackov <boris () codesynthesis ! com>
Date:       2008-04-23 8:49:27
Message-ID: 20080423084927.GA21772 () karelia
[Download RAW message or body]

Hi Zubin,

Zubin Sethna <zsethna@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic