Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 58287 invoked from network); 12 Feb 2007 21:57:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2007 21:57:33 -0000 Received: (qmail 39031 invoked by uid 500); 12 Feb 2007 21:57:38 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 38973 invoked by uid 500); 12 Feb 2007 21:57:38 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 38962 invoked by uid 99); 12 Feb 2007 21:57:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 13:57:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.93.239.130] (HELO mail.scalix.echostorm.net) (66.93.239.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 13:57:28 -0800 Received: from mail.scalix.echostorm.net (localhost [127.0.0.1]) by mail.scalix.echostorm.net (8.13.1/8.13.1) with ESMTP id l1CLv7xA004849 for ; Mon, 12 Feb 2007 16:57:07 -0500 Received: from mail.scalix.echostorm.net (root@localhost) by mail.scalix.echostorm.net (8.13.1/8.13.1/Submit) with ESMTP id l1CLv7Xn004846 for ; Mon, 12 Feb 2007 16:57:07 -0500 Received: from [10.1.0.61] (mail.scalix.echostorm.net 10.1.0.111) by mail.scalix.echostorm.net (Scalix SMTP Relay 10.0.3.3) via ESMTP; Mon, 12 Feb 2007 16:57:06 -0500 (EST) Date: Mon, 12 Feb 2007 16:59:51 -0500 From: "Raymond, Brian" To: commons-dev@jakarta.apache.org Message-ID: Subject: [Commons Configuration] using setProperty for element on XML plist x-scalix-Hops: 1 X-Mailer: Apple Mail (2.752.2) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="US-ASCII"; delsp="yes"; format="flowed" Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I have been banging my head against the wall for hours trying to write a element back into an OSX XML plist file. I use the following to successfully read the element: byte[] tmpByte = (byte[])settings.getProperty("node.name") 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 . 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org