Debugged xml parser