I use JAXB to generate code from my schema.
If my source xml file looks like the following, it works.
<Req
xmlns="url of the schema">
<Version>5.3.0</Version>
...
</Req>
But if the source file is this (declare a namespace for the schema, e.g. 'm'), then I get a validation exception.
<m:Req
xmlns:m="url of the schema">
<Version>5.3.0</Version>
...
</m:Req>
Could someone please tell me how to config JAXB so that source xml #2 will work too?
My schema has a target namespace
<xs:schema targetNamespace="an URL" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="
http://www.w3.org/2001/XMLSchema">
...
<xs:schema>
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at
http://isp.netscape.com/register
Netscape. Just the Net You Need.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net