Cleaned up xml files and DOM parsing.