Hi,

I have a class which I am writing to XML, with a method:

List<StatusCount> getStatusCounts() {

The StatusCount object has the methods:

String getStatusName() { ... }
String getStatusCount() { ... }

I want to output the following XML fragment (I have to conform to a third party DTD):

<data>
   <Status>Active</Status>
   <StatusCount>3</StatusCount>
   <Status>InActive</Status>
   <StatusCount>5</StatusCount>
   <Status>Banned</Status>
   <StatusCount>1</StatusCount>
</data>

I am using .betwixt files to configure my output, as the node names don't match the property names. I can't work out how to do this - each Status/StatusCount node is wrapped in a tag. Is this possible?

Thanks!
Tamsin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to