Missed a couple namespacing things with stdClass and DOMDocument.