Fixed minor typo and modified example to include chars that need XML encoding
Added XML encoding borrowed from x2js (https://code.google.com/p/x2js/)
Fixed indentation
Merge pull request #1 from perliedman/xml-encoding

Adds proper encoding of XML special characters