Temporary implementation of XML.toString to be visible in debugger