Fixing use of non-static DOMDocument::loadXML().