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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to