I want to create a gsp file like this:
but I fail to find how to write the code by markupbuilder.
my code like this: MarkupBuilder mb = new groovy.xml.MarkupBuilder(strXml);
def builderA = new StreamingMarkupBuilder()
def gsp = builderA.bind{
html{
g.uploadForm(action:"saveDataItem"){
table{
f.with{
tr{
td{
"Test"
}
}
}
}
}
}
}
println XmlUtil.serialize(gsp)
It dos not work.