Replaced improper DOMDocument call.
Merge pull request #2 from daniel-dgi/7.x

Replaced improper DOMDocument call.