Error thrown

Non-static method DOMDocument::loadXML() cannot be called statically