I have a variable userName="testUser" which goes into another string called Data. 
I am currently not sure how to to get rid of the sing quotes. If I do not give the single quotes the userName will be taken as a string literal. 
Data="<Resource  name="\"jdbc/datSource"\" auth="\"Container"\" \n factory="\"org.apache.tomcat.jdbc.pool.DataSourceFactory"\" driverClassName=\"\oracle.jdbc.driver.OracleDriver\"\ username=\"\'${userName}'\"\ />" 
Eventually what I am getting is
name="jdbc/datSource" auth="Container" 
 factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" driverClassName="oracle.jdbc.driver.OracleDriver" username="'testUser'" />
Just need to print username="testUser"
Thanks
 
     
    