[xsd-users] Remove Xerces Dependencies

Boris Kolpackov boris at codesynthesis.com
Mon Mar 31 04:54:08 EDT 2008


Hi Samuel,

Samuel Toulouse <samlepirate at samlepirate.net> writes:

> I would like to generate binary XDR representation of my xml with my
> build system and load them on my target device. So I wonder if it is
> possible to completely remove xerces-c because it is not currently
> ported on my target platform and i don't need to read/write xml.

I am pretty sure it is possible if you don't mind modifying a few
files in the runtime library (libxsd). Here is what you can do:

1. Compile your schemas with the --suppress-parsing option. This
   should result in the generated code that does not include any
   parsing constructors and therefore does not need Xerces-C++.

2. Then you will need to remove parts of the code that depend on
   Xerces-C++ from a few files in libxsd/xsd/cxx/tree/. I think
   just cleaning up elements.* and types.* should be enough. You
   can comment or remove all the parsing constructors (those that
   have DOMElement and DOMAttr arguments) since they won't be used.

Boris




More information about the xsd-users mailing list