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/05/06 09:24:09 UTC

RE: Embedding schema

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

Cheers

Zubin

-----Original Message-----
From: Boris Kolpackov [mailto:boris@codesynthesis.com] 
Sent: Wednesday, 23 April 2008 6:49 PM
To: c-users@xerces.apache.org
Subject: Re: Embedding schema

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