I have the following code to get a XML page:
withHttp(uri: "PAGE") {
get(path : 'PATH',
query : [xxx:'xxx']){ resp, xml ->
for (AuthToken in xml){
println AuthToken.text()
}
}
}
My problem is, that the result is not printed as a xml tree. Only the leafs of the XML document are printed. I want to print the xml document, so I can parse it with an XML Parser.
How can I achieve this?