<p>This method generates an xml based string by concatenating together various 
xml fragments, and variable values. Doing so makes the code difficult to read, modify 
and validate. It is much more clean to built xml structures in external files that are
read in and transformed into the final product, thru modification by Transformer.setParameter.
</p>