loresoft / msbuildtasks

The MSBuild Community Tasks Project is an open source project for MSBuild tasks.
BSD 2-Clause "Simplified" License
946 stars 271 forks source link

Changed namespace prefix handling for XmlUpdate #221

Closed nukeme1 closed 8 years ago

nukeme1 commented 8 years ago

Changed the way XmlUpdate uses the prefix parameter to allow setting a default namespace by simply omitting or adding a "" value for the prefix argument.

This way, we can specify only a namespace that we wish work in and not need to use a dummy prefix at every level of the xpath parameter's path when the concerned nodes are in the default namespace.

This is documented behavior of AddNamespace's prefix parameter as per msdn (see: https://msdn.microsoft.com/en-us/library/system.xml.xmlnamespacemanager.addnamespace(v=vs.110).aspx)