I have imported my config File in my installer so I can add all the needed settings with the session variables filled during the setup.
One of my Installer steps allows the user to select some folders, that I want to add under the xml-element syncPaths.
so the final xml it should look something like this:
Code: Select all
<syncPaths>
<syncPath value=''selected_folder_1' />
<syncPath value=''selected_folder_2' />
<syncPath value=''selected_folder_3' />
</syncPaths>each selected folder should create a new syncPath -element
So I set a Session variable called BTS_XML_SYNC and wanted to have this as the text element on the syncPaths element.
A custom Action creates the "sub-elements" and sets the BTS_XML_SYNC with this text.
Something like this:
Code: Select all
session["BTS_XML_SYNC"] = "<syncPath value=''selected_folder_1' />\n<syncPath value=''selected_folder_2' />\n<syncPath value=''selected_folder_3' />"This text gets XMl escaped so I get this result:
Code: Select all
<syncPaths>
<syncPath value=''selected_folder_1' />
<syncPath value=''selected_folder_2' />
<syncPath value=''selected_folder_3' />
</syncPaths>
How can avoid the xml-encoding?
Thank you for your help
FOLLOW US
Get the latest news in Application Packaging