Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 705 invoked from network); 9 Nov 2004 14:14:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Nov 2004 14:14:46 -0000 Received: (qmail 14471 invoked by uid 500); 9 Nov 2004 14:13:20 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 14393 invoked by uid 500); 9 Nov 2004 14:13:17 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 36496 invoked by uid 99); 9 Nov 2004 11:31:10 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=MANY_EXCLAMATIONS,PLING_QUERY X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Message-ID: <0e2f01c4c64f$9eebdc30$7401a8c0@mawu> From: "Christoph Gaffga \(triplemind.com\)" To: , "Development" Subject: [betwixt] Support for Maps broken in 0.6.1-dev?!?! Date: Tue, 9 Nov 2004 12:31:13 +0100 Organization: Triplemind Internet Services OHG MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Triplemind-Filter: procmail-filter applied X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi, I have some trouble with the latest version of betwixt. It seems to me that the support for Maps is broken. I tested with the following example: Map hash = new Hashtable(); hash.put("de", "deutsch"); hash.put("en", "english"); hash.put("es", "espaniol"); beanWriter = new BeanWriter(System.out); beanWriter.enablePrettyPrint(); beanWriter.setWriteEmptyElements(false); beanWriter.getBindingConfiguration().setMapIDs(false); beanWriter.setXMLIntrospector(new XMLIntrospector()); beanWriter.write(hash); and get the follwoing result: false when removing the setWriteEmptyElements(false) line, I get: false en english es espaniol de deutsch So there seem to be a problem with supressing empty elements. And I wondered why the empty-Property is written, should be suppressed. Any help would be appreciated. regards Christoph Gaffga cgaffga@triplemind.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org