Hello all-
I need to replace all <tags> and make them look like <ws:tags> in a provided string. So for example, if this string was provided:
<recipientScheduleDetail>
<scheduleName>Mark Test</scheduleName>
<division>/IT//division>
<shifts>
<shiftName>Test</shiftName>
<importedShift>false</importedShift>
</shifts>
</recipientScheduleDetail>
And I'd like the desired output to be this:
<ws:recipientScheduleDetail>
<ws:scheduleName>Mark Test</ws:scheduleName>
<ws:division>/IT//ws:division>
<ws:shifts>
<ws:shiftName>Test</ws:shiftName>
<ws:importedShift>false</ws:importedShift>
</ws:shifts>
</ws:recipientScheduleDetail>
How could I do this? I need to replace and add the "ws:" to all tags, both the opening and the closing ones. Any help would be appreciated!
Thanks!
I need to replace all <tags> and make them look like <ws:tags> in a provided string. So for example, if this string was provided:
<recipientScheduleDetail>
<scheduleName>Mark Test</scheduleName>
<division>/IT//division>
<shifts>
<shiftName>Test</shiftName>
<importedShift>false</importedShift>
</shifts>
</recipientScheduleDetail>
And I'd like the desired output to be this:
<ws:recipientScheduleDetail>
<ws:scheduleName>Mark Test</ws:scheduleName>
<ws:division>/IT//ws:division>
<ws:shifts>
<ws:shiftName>Test</ws:shiftName>
<ws:importedShift>false</ws:importedShift>
</ws:shifts>
</ws:recipientScheduleDetail>
How could I do this? I need to replace and add the "ws:" to all tags, both the opening and the closing ones. Any help would be appreciated!
Thanks!