1
Vote

"Greater than" sign within attribute value unwanted conversion

description

I have the following block within my transformation document ...
<?xml version="1.0"?>

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
    <connectionStrings>
        <add name="MyDb"
            connectionString="Data Source=localhost;Initial Catalog=MyCatalog;user id=MyUser;password=abc>123"
            xdt:Transform="SetAttributes"
            xdt:Locator="Match(name)"/>
    </connectionStrings>
</configuration>
when I run the transformation the connection string looks as follows ...
<add name="MyDb" connectionString="Data Source=localhost;Initial Catalog=MyCatalog;user id=MyUser;password=abc&gt;123" />
I can't find a way to keep the > sign as is within the password string. I do not have the ability to change the password.

comments