Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 37299 invoked from network); 17 Nov 2006 18:53:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Nov 2006 18:53:19 -0000 Received: (qmail 45265 invoked by uid 500); 17 Nov 2006 18:53:23 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 45232 invoked by uid 500); 17 Nov 2006 18:53:23 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 45221 invoked by uid 99); 17 Nov 2006 18:53:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Nov 2006 10:53:23 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [200.59.131.245] (HELO relay.net02) (200.59.131.245) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Nov 2006 10:53:10 -0800 Received: from srvl010.intranet.banelco.com.ar by relay.net02 via smtp id 7ec3_8f1179b2_766c_11db_87e6_0002b3c89e66; Fri, 17 Nov 2006 15:50:56 -0300 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Betwixt not writing empty attributes Date: Fri, 17 Nov 2006 15:52:51 -0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Betwixt not writing empty attributes Thread-Index: AccKeZVtYb+MRCjPTwyfyj3QIl/1LQ== From: "Juan Vicente" To: X-Virus-Checked: Checked by ClamAV on apache.org I can't get betwixt to write an attribute that is empty (""). Here's de .betwixt file: ------------------ =20 ------------------ This is the class: ------------------ public class InterconexionSETI { private String idOrigen; private String cuitOrigen; private String idMensaje; private String fechaGeneracion; private String fechaExpiracion; private String cuitUsuario; =09 [...] } ------------------ This is the mapping rutine: ------------------ StringWriter resultWriter =3D new StringWriter(); BeanWriter writer =3D new BeanWriter(resultWriter); writer.getBindingConfiguration().setMapIDs(false); //writer.getBindingConfiguration().setValueSuppressionStrategy(ValueSupp ressionStrategy.ALLOW_ALL_VALUES); writer.enablePrettyPrint(); try { writer.write(setiBean); } catch (IOException ioex) { } catch (SAXException saxex) { } catch (IntrospectionException iex) { } =09 return resultWriter.toString(); ------------------ I get the following xml: ------------------ ------------------ Where the element doesn't include the "system" attribute. I've tried using the ValueSuppressionStrategy.ALLOW_ALL_VALUES, but I get the following xml: ------------------ ------------------ What am I doing wrong?? --- Juan Eduardo Vicente --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org