You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using wixtoolset that comes with visual studio 2019.
I have been using xmlConfig to add elements into a web.config.
When I add an element which has a xmlns attribute it gets added as expected, along with its value. My problem arises when I add a child element to this parent element. For some reason the child element automatically gets an xmlns attribute added but its value is set to empty.
I have come accross one other article that talks about a work around of using a node="document" XmlConfig option with a CData section to add the child element, instead of relying on xmlConfig to do it for me. This is however not working for me, and I cannot find a good example of it.
No matter what I put in the CData section it does not get applied to the parent node supplied in the ElementPath.
Hopefully someone on here can point me in the right direction.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using wixtoolset that comes with visual studio 2019.
I have been using xmlConfig to add elements into a web.config.
When I add an element which has a xmlns attribute it gets added as expected, along with its value. My problem arises when I add a child element to this parent element. For some reason the child element automatically gets an xmlns attribute added but its value is set to empty.
I have come accross one other article that talks about a work around of using a node="document" XmlConfig option with a CData section to add the child element, instead of relying on xmlConfig to do it for me. This is however not working for me, and I cannot find a good example of it.
No matter what I put in the CData section it does not get applied to the parent node supplied in the ElementPath.
Hopefully someone on here can point me in the right direction.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions