Code
Result

Thats now fixed

We used domdocument for xml instead of a string.

Features:

1- Lightweight

2- Faster

3- Better than old at all.