Issue 183 - 3. Trial

I have changed the code from DomDocument to XMLWriter.