add node argument to queryToXML method