Updated xmlWriter.lua.
Updated, added documentation.