Re: [castor-dev] question on strictelements

2005-02-02 Thread Peter Lin
hi kieth, the challenge here is I am using a third party client which uses castor. The objectfactory uses the static unmarshal() method. Although I could rewrite the objectfactory I don't want to take the responsibility for the third party client. I submitted a patch, which should have minimal im

Re: [castor-dev] question on strictelements

2005-02-02 Thread Keith Visco
Peter, The static unmarshal() methods are simply for convenience. You can easily construct an Unmarshaller, configure it, and invoke it as such: Unmarshaller unm = new Umarshaller(MyClass.class); unm.setIgnoreExtraElements(true); unm.unmarshal(myReader); --Keith Peter Lin wrote: has anyone given

[castor-dev] question on strictelements

2005-02-02 Thread Peter Lin
has anyone given thought to making strictelement configurable through system properties? The reason I ask is, for production I would like the ability to turn off strictelements so that in the event a third party changes the schema, the server doesn't just get errors. I was looking over UnmarshalH