Altered xml to dom.