Sorry i located the answer to this in the FAQ. is it possible to set
this indent feature to true programmatically, instead of editing the
castor.prop file?
From: Vinodh Rajaraman (vrajaram)
Sent: Wednesday, December 13, 2006 2:05 PM
To: dev@castor.codehaus.org
Yes, by obtaining the properties used internally by the Marshaller and
setting this one property explicitely to true.
Werner
From: Vinodh Rajaraman (vrajaram) [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 13. Dezember 2006 09:48
To:
Marhsaller isnt providing a method to access property file, or am not
aware.
Do u mean we should use
LocalConfiguration.getInstance.getProperties() ??
How do i set indent to true here
From: Werner Guttmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Werner
i was able to set using LocalConfig object as below. Thanks
From: Vinodh Rajaraman (vrajaram)
Sent: Wednesday, December 13, 2006 2:29 PM
To: dev@castor.codehaus.org
Subject: RE: [castor-dev] XML generation
Marhsaller isnt providing a method to
Hi
I have an object that needs to be marshalled, infact i had unmarshalled
them using castor, so it has all class descriptors, and stuff.
while marshalling, i chose to ignore some elements, by that i mean, i
want that element to be present in the xml file, but value should be
empty as
5 matches
Mail list logo