[xsd-users] Question about xsd
Boris Kolpackov
boris at codesynthesis.com
Tue Jan 23 16:11:51 EST 2007
Hi Gregorio,
Gregorio Arvilla <Gregorio.Arvilla at epvgroup.com> writes:
> If I generate code for a xsd schema on a Windows machine and then
> move that generated code to the HP-UX machine, what do I need to
> install on the HP-UX machine to use that code?
You will need two things besides the generated code:
1. Xerces-C++. Compile it using aCC. Note that to build Xerces-C++
you will also need GNU make. Check is you have 'gmake' command
on you system. If so then that's GNU make. If not then you will
need to build or get one. Once you have GNU make, you can do:
$ gzip -d xerces-c-src_2_7_0.tar.gz
$ tar xf xerces-c-src_2_7_0.tar
$ cd xerces-c-src_2_7_0
$ export XERCESCROOT=`pwd`
$ cd src/xercesc
$ ./runConfigure -p hp-11 -x aCC
$ gmake
Run runConfigure without any options to see the complete
list of the configuration parameters. At the end of the
build headers will be in xerces-c-src_2_7_0/include and
libraries in xerces-c-src_2_7_0/lib
2. Libxsd. This is header-only XSD run-time library. You can
copy it along with the generated code from the Windows box.
You don't need to build it.
After that you are all set. For instance, the hello example
that comes with the XSD distribution can be compiled like
so:
$ aCC -AA -Ixerces-c-src_2_7_0/include -Ilibxsd -Lxerces-c-src_2_7_0/lib hello.cxx driver.cxx -lxerces-c
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070123/f0a615ae/attachment.pgp
More information about the xsd-users
mailing list