[xsd-users] xsd examples

Dave Yost Dave at Yost.com
Fri May 2 19:45:07 EDT 2008


Problem #1

It would be nice to have an example directory that has the hello 
world example in it and a makefile.

I was able to generate C++ from my schema, but when I tried to 
compile it and a simple main to use it (adapted from the helloworld 
example in the doc), I couldn't compile it.


Problem #2:

0 1333 Z% pwd
/Users/yost/Downloads/Incoming/xsd-3.1.0-i686-macosx/examples
Fri 16:41:48 ip2 yost 
/Users/yost/Downloads/Incoming/xsd-3.1.0-i686-macosx/examples
0 1334 Z% make | head
make -C cxx
g++ -I../../../../libxsd -W -Wall -c library-driver.cxx -o library-driver.o
In file included from library-pskel.hxx:79,
                  from library-pimpl.hxx:11,
                  from library-driver.cxx:8:
../../../../libxsd/xsd/cxx/parser/xerces/elements.hxx:14:35: error: 
xercesc/sax/Locator.hpp: No such file or directory
../../../../libxsd/xsd/cxx/parser/xerces/elements.hxx:15:39: error: 
xercesc/sax/InputSource.hpp: No such file or directory
../../../../libxsd/xsd/cxx/parser/xerces/elements.hxx:16:42: error: 
xercesc/sax2/SAX2XMLReader.hpp: No such file or directory
../../../../libxsd/xsd/cxx/parser/xerces/elements.hxx:17:43: error: 
xercesc/sax2/DefaultHandler.hpp: No such file or directory
In file included from ../../../../libxsd/xsd/cxx/parser/xerces/elements.hxx:19,
                  from library-pskel.hxx:79,
                  from library-pimpl.hxx:11,
                  from library-driver.cxx:8:
../../../../libxsd/xsd/cxx/xml/elements.hxx:11:42: error: 
xercesc/util/PlatformUtils.hpp: No such file or directory
In file included from 
../../../../libxsd/xsd/cxx/parser/xerces/elements.hxx:449,
                  from library-pskel.hxx:79,
                  from library-pimpl.hxx:11,
                  from library-driver.cxx:8:
[etc/]
make[3]: *** [library-driver.o] Error 1
make[2]: *** [generated] Error 2
make[1]: *** [parser] Error 2
make: *** [cxx] Error 2
Fri 16:41:54 ip2 yost 
/Users/yost/Downloads/Incoming/xsd-3.1.0-i686-macosx/examples
0 1335 Z%


Thanks

Dave


More information about the xsd-users mailing list