[xsd-users] Namespaces

Daniel Berglund daniel.berglund at scilifelab.se
Mon Jun 18 10:08:21 EDT 2012


I used the hello world example but changed it a bit to look more like the
real xml file. The error when ruining driver on the xml file is:
error: no declaration found for element 'hello'

Then the same error for the rest of the elements and attributes.

/Daniel

On Mon, Jun 18, 2012 at 4:01 PM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Daniel,
>
> Daniel Berglund <daniel.berglund at scilifelab.se> writes:
>
> > The probelem is that I had to add a namespace (test_space) to the xml for
> > it to work and I want to avoid modifying it.
>
> Then you need to also make sure your schema doesn't define a namespace
> (i.e., there is no targetNamespace). If that still doesn't work for
> some reason, then try to create a small but complete test case (i.e.,
> a schema and an xml file) that reproduces the problem and post it
> here.
>
> Boris
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver.cxx
Type: application/octet-stream
Size: 892 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20120618/9db513f8/driver.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.xml
Type: text/xml
Size: 252 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20120618/9db513f8/hello.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.xsd
Type: application/octet-stream
Size: 709 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20120618/9db513f8/hello.obj


More information about the xsd-users mailing list