BTDF / DeploymentFramework

The Deployment Framework for BizTalk is the most powerful and customizable, yet easy-to-use toolkit for deploying and configuring your BizTalk solutions.
MIT License
53 stars 24 forks source link

XmlNodeToAdd not handling ( ") double quotation #321

Closed tfabraham closed 6 years ago

tfabraham commented 6 years ago

I am trying to use XmlNodeToAdd to add attribute to web.config xml all attribute goes fine except one

/configuration/system.serviceModel/bindings/CustomAdapterBinding binding name Custombinding ResponsePrefixData <?xml version="1.0"?>

but on deploying the project this attribute changed by removing the " (even when put " its removed). the following taken DeploymentResult.txt

%SystemDrive%\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe "Framework\Build.proj" /t:SetAttribute /p:FileToUpdate="..\web.config",nodeXPath="/... " addNodeAttr2="ResponsePrefixData",addNodeAttrValue2="<?xml version="1.0" encoding="utf-8"?>"

.... web.config : Set attribute 'ResponsePrefixData' to '<?xml version=1.0 encoding=utf-8?>' in 1 element(s) matching XPath ...

any idea how i can insert this value as attribute using BTDF <?xml version="1.0" encoding="utf-8"?>

Thanks,

This work item was migrated from CodePlex

CodePlex work item ID: '10569' Vote count: '1'

tfabraham commented 6 years ago

[tfabraham@3/30/2014] I'm not familiar with XmlNodeToAdd as it is not a Deployment Framework task, but I can say that you need to use " instead of " in your addNodeAttrValue2.

tfabraham commented 6 years ago

[AhmadAbuHantash@3/31/2014] Many thanks for your reply

the issue was related to msbuild. on calling another target in another project file and passing <?xml version="1.0" encoding="utf-8"?> or <?xml version="1.0" encoding="utf-8"?> as parameter then it will remove " and pass it as following <?xml version=1.0 encoding=utf-8?>

tfabraham commented 6 years ago

[UnknownUser@3/31/2014]

tfabraham commented 6 years ago

Issue closed by tfabraham with comment Resolved but not related to Deployment Framework

Reason closed Not BTDF