You use xml.toString() and then the variables are recognized as such.