File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Castor mapping problem