util function converting backtrace into airbrake notice xml

it uses libxml2, I can add expat support once I see how it works