commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Natalie Ng" <nng1...@hotmail.com>
Subject Bean Utils - Generating XML for a DynaBean
Date Wed, 19 Feb 2003 23:59:43 GMT
Hi everyone, is there a simple way to generate an XML for the actual content 
of a DynaBean instance?

i.e.

<myBean>
   <name>Snoopy</name>
</myBean>

... not the following (generated by betwixt) ...

<myBean>
  <dynaClass>
    <dynaProperties>
      <DynaProperty>
        <mapped>false</mapped>
        <name>name</name>
        <type>class java.lang.String</type>
        <indexed>false</indexed>
      </DynaProperty>
    </dynaProperties>
  </dynaClass>
</myBean>

I could probably write my own implementation with JDom, but this seems to be 
generic enough that someone may have done already. Thanks.

cheers,
Natalie


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


Mime
View raw message