commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Gaffga" <>
Subject [betwixt] element without name attribute in do betwixt file?
Date Mon, 29 Nov 2004 19:48:32 GMT
hi all,

I have a collection containing differen instances. Now I output the XML
using betwixt with a dot-betwixt-file containing:

<?xml version="1.0" encoding="ISO-8859-15"?>
<info primitiveTypes="element">
  <element name="MyTest">
    <element name="list">
      <element name="item" property="collection"/>

where my collection is an instance of ArrayList. I get a result like:

    <item>a string</item>

That's fine. Bus what if I would like it to be:

    <String>a string</String>

or for instances of complex classes their name from their dot-betwixt-file.

I looked into the DTD and saw the name-attribute is required. so I cant
write something like:
      <element property="collection"/>
but that is excatliy what I like to do, have the name depanding on the

Is there another way to have this done. Can I plug this somewhere.
Any Ideas?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message