FYI - I found that the exception was being thrown due to a bug and not
because of validation.
---
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
I need to clone an object that doesn't validate. e.g. throws a
ValidationException I tried disabling validation by setting
org.exolab.castor.marshalling.validation=true before cloning it
but I still get the exception. To clone, I am using writeObject() to
write the object to an Objec
On Mar 17, 2004, at 3:52 PM, Keith Visco wrote:
I think Roberts concern was that when using -types j2 he's getting
Enumeration instead of Iterator, so that code needs to be updated.
That is what I meant but I don't know how you read my mind. I am
indeed using j2 types. Also, it would be nic
This is definitely a bug in Castor. If you instantiate the Unmarshaller
using a class, it works fine:
unmarshaller = new Unmarshaller(MyType.class);
unmarshaller.setIgnoreExtraAttributes(true);
unmarshaller.setIgnoreExtraElements(true);
reader = new FileReader(filename);
myobj = (MyType)unmarsha
Could you temporarily unsubscribe him so we don't get a hundred
out-of-the office messages and also so that the message archive doesn't
get cluttered?
Keith Visco wrote:
Sorry for the administrative spam, but every now and then I'm forced to
send this out:
For those of you not currently "out of
I think Exolab is using "minimalist" for this mailing list. I don't
know but other mailing list management software packages have a way to
strip attachments, filter spam and such. Has Exolab ever considered
using Mailman, http://www.list.org I know Mailman is very popular and
has all sorts o
I need to generate classes that use slightly different methods than the
ones the SourceGenerator creates. Will a mapping file allow me to do
this? I have never used one and I can't seem to find much on the
subject or at least I may be looking the wrong place.
In particular, I'd like to create
Thanks Keith! That will work and also simplify everything especially
when used with the generate imported schema option.
Robert
Keith Visco wrote:
Hi Robert,
You need to set the namespace->package mappings in castor.properties (or
castorbuilder.properties)
See the following in the castor xml
Keith Visco wrote:
Imported schema are not generated by default, please see my other reply. :-)
I think I have a better understanding of the problem. I am calling the
SourceGenerator twice but each time for a different package. How could
SourceGenerator possibly know about the other package