Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    transformRequest to create custom XML

    I have a form whose field names I want to be attributes for an XML entry and whose values I want to be string nodes in the element which has said attribute, as such:

    <FormDatum name="fieldName">FieldValue</FormDatum>

    Is there an easy way to do this or do I need to mangle the data in transformRequest? The reason I'm doing this is I'm building forms on the fly based on a bunch of field definitions that come from the server. When I send data back I need arbitrary field names so I'm using an XmlJavaTypeAdapter to convert those FormDatum's into a HashMap<String,String>.
Working...
X