public String getXmlFormatted ( Map < String , String > dataMap ) { StringBuilder sb = new StringBuilder ( ) ; for ( String var : outTemplate ) { sb . append ( appendXmlStartTag ( var ) ) ; sb . append ( dataMap . get ( var ) ) ; sb . append ( appendXmlEndingTag ( var ) ) ; } return sb . toString ( ) ; }
Given an array of variable names returns an Xml String of values .