Forum Discussion
1 Reply
- Umea_universiteOccasional ContributorI solved the problem by using MarkupBuilder:
try {
xml.PERSONS
{
sql.eachRow("select * from NAMN limit 1") { row ->
PERSON
{
Pnr(row.pnr)
LastName(row.enamn)
FirstName(row.tnamn)
}
}
}
} catch (Exception e) {
log.error "Error: ...";
}
which generates a XML that I can refer to in the following test request. Party!
/ Rikard