Simple DOM for read and write XML