Hi Mehmood: Which particular property are you looking for? The Marshaller class does have numerous acccessor methods for various settings (debug, encoding, logWriter etc). You can get further details in the API doc http://castor.exolab.org/api/index.html Hope that helps.
------------------- Karuna Annavajjala Software Architect Westerville, OH -----Original Message----- From: Shaikh, Mehmood [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 2:23 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Dynamic configuration for marshalling-unmarshalling. No. There is no set method to set properties which are defined in configuration file, i.e. castor.properties. I'd like to dynamically set the properties defined in castor.properties for every instance of marshaller and unmarshaller. Thanks. -----Original Message----- From: Andy Nguyen [mailto:[EMAIL PROTECTED]] Sent: January 14, 2003 2:16 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Dynamic configuration for marshalling-unmarshalling. It seems that you can instantiate an instance of Marshaller/Unmarshaller every time you need to marshal/unmarshal: org.exolab.castor.xml.Marshaller marshaller = new org.exolab.castor.xml.Marshaller(a_java_io_Writer__object); marshaller.set... // do what you need to change the marshaller's behavior here marshaller.marshal(some_object); I hope that's what you're looking for. Good luck. -- Andy Nguyen \ aqn at fortigo dot com \ (512) 305-0057 -------- Original Message -------- Subject: [castor-dev] Dynamic configuration for marshalling-unmarshalling. Date: Tue, 14 Jan 2003 13:24:38 -0500 From: "Shaikh, Mehmood" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] I want to be able to dynamically able to set configuration for each instance of Marshaller and Unmarshaller class. This is required so that i can use different parsers for different xml documents that i want to unmarshall.e.g. some documents need to be parsed using non-validating parser and some require validating parser. Also, some documents would have primitives as attributes and some as elements. Is there a way to do this? Mehmood Shaikh Thanks. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
