Forum Discussion
Umea_universite
12 years agoOccasional Contributor
I solved the problem by using MarkupBuilder:
which generates a XML that I can refer to in the following test request. Party!
/ Rikard
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