我需要在我的xml中找到一个点名档案,然而,梯度项目有一份被称作取名的财产档案。 这方面的最佳途径是什么?
import groovy.xml.MarkupBuilder
task test {
def writer = new StringWriter()
def xml = new MarkupBuilder(writer)
xml.elem1(test: fest ) {
elem2(a: b )
file(c: d )
elem4(e: f )
}
println(writer)
}