Adding implementation of DOM manipulation using SimpleXML.