[lib, /]: Move over to DOMDocument instead of SimpleXML.