XML parsing and DOM traversal for the sane