I am Charmie

メモとログ

xml

CMakeLists.txt working with CodeSynthesis XSD

I made a repository that uses CodeSynthesis XSD with CMake. The CMakeLists.txt calls XSD and generates C++ classes so that we can avoid calling XSD from terminal, meaning the compilation is fully automatic. The CMakeLists.txt does find nec…

CodeSynthesis XSD installation 2

With Ubuntu package manager, we can install both CodeSynthesis XSD and Xerces-C as [code lang="bash"] sudo apt-get install libxerces-c-dev sudo apt-get install xsdcxx [/code] To generate a class, the command xsdcxx executes code synthesis …

CodeSynthesis XSD: how to use

Calling the executable of CodeSynthesis XSD from terminal, we will obtain a set of test.hxx and test.cxx files given an XSD file test.xsd. [sourcecode language="bash"] xsd cxx-tree --generate-doxygen test.xsd doxygen -g test.doxygen doxyge…

CodeSynthesis XSD: CMake

Following the wiki, we should be able to use CodeSynthesis XSD with CMake. What the FindXSD.cmake does is that call the executable of CodeSynthesis XSD and give an .xsd file, say test.xsd, the executable. pre-defined function generates a s…

CodeSynthesis XSD installation

CodeSynthesis XSD is an XML Schema to C++ data binding compiler, which generates C++ classes representing given xsd file(s) as a pair of cxx and hxx files. We can either build by ourselves or install using package manager, see here. To ins…

Xerces-C++ XML Parser installation

Xerces-C++ XML parser is an XML parser for C++. This library is also required for using code synthesis XSD. The library provides instruction for a href="http://xerces.apache.org/xerces-c/install-3.html">installation and build. [sourcecode …

Expat installation

Expat is an XML parser library for C. Expat is required library for using code synthesis XSD. [sourcecode language="bash"] wget downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz tar -xvzf expat-2.1.0.tar.gz mkdir expat…

CodeSynthesis XSD

Here is an instruction how to use XSD with CMake. Following the first solution by Brad Howes, we need to prepare the following CMakeLists.txt as well as FindXercesC.cmake and FindXSD.cmake.