commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <>
Subject Re: [Commons Configuration] using setProperty for <data> element on XML plist
Date Tue, 13 Feb 2007 21:32:36 GMT
Raymond, Brian wrote:
> I have been banging my head against the wall for hours trying to write a 
> <data/> element back into an OSX XML plist file. I use the following to 
> successfully read the element:
> byte[] tmpByte = (byte[])settings.getProperty("")
> I then modify it but I cannot for the life of me figure out how to cast 
> it and write it back into the file using setProperty(). I'm at the point 
> where I Base64 encode it and write it out as a string but I cannot get 
> it back into <data>.  I have looked through the junit tests, javadocs 
> and online and the closest thing I found was a nested class with an 
> addDataValue() method that looks like it's built for this but it warns 
> that it's for internal use by the digester.
> Thanks for reading, if anyone can provide a pointer I would be grateful.
> Thanks,
> - Brian

I haven't used XMLPropertyListConfiguration myself. But from a short 
glance at the code I fear that there could be a bug related to the 
handling of arrays. What exactly is the result when you call 
setProperty() with the modified byte[]?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message