A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
XML and Related Technologies
Author
Castor mapping problem
Victor Rodr�guez
Greenhorn
Joined: Apr 02, 2007
Posts: 10
posted
May 09, 2007 01:36:00
0
Hi all,
I am trying to map an attribute like this:
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
with this mapping tag:
<bind-xml name="xmlns:xsi" node="attribute" />
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
posted
May 09, 2007 01:55:00
0
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://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Castor mapping problem
Similar Threads
requested resource not found error
Checking for Session Timeout
struts action form not working
JPA strange error.
HTTP Status 404
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter