aspose 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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor mapping problem" Watch "Castor mapping problem" New topic

Castor mapping problem

Victor Rodr�guez

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="" target="_blank" rel="nofollow"></a>
Victor Rodr�guez

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:
subject: Castor mapping problem