New XMLHelper function 'statement'. Applied it to XML generation.
Removed unused functions from XMLHelper.