added a xml tostring trace prototype