Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Castor mapping problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor mapping problem" Watch "Castor mapping problem" New topic
Author

Castor mapping problem

Victor Rodr�guez
Greenhorn

Joined: Apr 02, 2007
Posts: 10
Hi all,

I am trying to map an attribute like this:



with this mapping tag:



but the result is a MappingException with the message:

Nested error: The namespace associated with the prefix: 'xmlns' is null.


Can someone help me, please?

thank you very much,


VictorR<br /><a href="http://www.v-code.org" target="_blank" rel="nofollow">www.v-code.org</a>
Victor Rodr�guez
Greenhorn

Joined: Apr 02, 2007
Posts: 10
Ok, I have already done it!

The solution is to use the setSchemaLocation() function from Marshaller with the value of the schema location.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Castor mapping problem