[xsd-users] Problems with 1.9 and visual studio 2005

Boris Kolpackov boris at codesynthesis.com
Tue Feb 21 01:13:59 EST 2006


Hi,

José Manuel Sánchez <buscarini at gmail.com> writes:

> I have compiled xerces-2.7, and i can compile the examples in the xsd
> 1.9distribution, but i can't parse the example file "
> hello.xml" . This is what I get:
>
> C:\ .. \xsd-1.9.0-i686-windows\examples\cxx\tree\hello\Release>driver.exe
> hello.xml
> C:\ .. \xsd-
> 1.9.0-i686-windows\examples\cxx\tree\hello\Release/hello.xml:11:8 error:
> Unknown element 'hello'

I think you did not copy hello.xsd into the Release directory. By
default, the generated code validates the instance against the
corresponding schema.

I usually run examples on Windows like this:

...\xsd-1.9.0-i686-windows\examples\cxx\tree\hello> Release\driver.exe hello.xml

This way you don't need to copy anything.

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/20060221/50402bd8/attachment.pgp


More information about the xsd-users mailing list