Thanks Boris for the article. It looks pretty easy to do!

Cheers

Zubin

-----Original Message-----
From: Boris Kolpackov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 23 April 2008 6:49 PM
To: [email protected]
Subject: Re: Embedding schema

Hi Zubin,

Zubin Sethna <[EMAIL PROTECTED]> 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

Reply via email to