Added dom/xml classes to PHP.