XML not formatting correctly
<p>I'm quite new to xml coding and maybe thinking I bit off more than I can chew. I can get them to run fine alone separately but when I try and combine the it does not work or the formating is bad. trying to incorporate this java process to incorporate single quotes to a file name here is the process name to add the single quote. I need the concat to happen first with file name and unique identifier and then I need to take that filename and add the single quotes basically.
`
    
        
            
            <br>
                
                </p>

<pre><code>            &lt;!-- &lt;assign to="DestinationMessageName" from="concat(DestinationMessageName,'.T',string(mfExtension))" /&gt; --&gt;

            &lt;assign to="NewFilename"  from="
                if(string-length(NewFilename) &amp;gt; 0, 
                    concat(NewFilename, '.T',string(mfExtension)),
                    if(string-length(C_RENAME_MASK) &amp;gt; 0, 
                        concat(C_RENAME_MASK, '.T',string(mfExtension )),
                        concat(DestinationMessageName, '.T',string(mfExtension))
                       )
                    )" 
            /&gt;

        &lt;/output&gt;
        &lt;input message="inmsg"&gt;  
            &lt;assign to="." from="*"&gt;&lt;/assign&gt;
        &lt;/input&gt;    
    &lt;/operation&gt;
&lt;/sequence&gt; 
</code></pre>

<p>`</p>

<p>Here is the original process where it concats the filename and a unique indentifier at the end of a file name. example filename.T123456
I still need the filename and unique indentifier but I need to encompass the whole thing in single quotes. 'filename.T123456'</p>

<pre><code>    &lt;process name="test_quote_JavaTask"&gt;
 &lt;sequence&gt;
    &lt;assign to="NewFilename"&gt;"*"&lt;/assign&gt;
    &lt;operation name="JavaTask Service"&gt;
      &lt;participant name="Quote_Java_task"/&gt;
      &lt;output message="JavaTaskInputMessage"&gt;
        &lt;assign to="." from="*"&gt;&lt;/assign&gt;
      &lt;/output&gt;
      &lt;input message="inmsg"&gt;
        &lt;assign to="." from="*"&gt;&lt;/assign&gt;
      &lt;/input&gt;
    &lt;/operation&gt;
  &lt;/sequence&gt;
&lt;/process&gt;
</code></pre>

<p>Any help would be greatly appreciated. </p>