You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by robert burrell donkin <ro...@blueyonder.co.uk> on 2003/07/09 20:26:50 UTC
Re: [betwixt] formatting xml output
hi jason
there are a number of ways to do this. it can be done directly using a
betwixt file or (probably) by setting a property on the BeanWriter. it's
hard to be more precise without knowing a little more about the property
you're trying to map.
try setting
BeanWriter.getXMLIntrospector().setAttributesForPrimitives(true) and see
what happens.
the documentation has been developed since the last release so you might
like to take a look at http://jakarta.apache.org/commons/betwixt/overview.
html.
- robert
On Wednesday, July 9, 2003, at 08:17 PM, Jason Vinson wrote:
> I am using the betwixt package to convert beans -> xml and I wanted to
> specify my output as follows:
>
> <option name="beanName" value="beanValue"></option>
>
> instead of the standard
>
> <beanName>beanValue</beanName>
>
> is there an easy way to do this via settings or params, or will I need to
> modify the parser directly? And if I do need to modify the parser, could
> someone give me a tip on where to look in the source?
>
> Thanks,
> Jason
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>