6

I am using BizTalk Deployment Framework (BTDF) for deploying my BizTalk solution. If I have made any changes to BizTalk bindings, I export them from BizTalk Administration Console and replace my PortBindingsMaster.xml bindings file (created by BTDF) with my exported bindings. I think many of you do the same. The problem is that when I do the export, BizTalk mixes up the order of XML nodes in bindings file, so when I am trying to merge with my source control, I'm getting over 9000 conflicts.

Is there any cool way to merge these BizTalk bindings?

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
Arsen Magomedov
  • 480
  • 8
  • 21
  • +1, I'd love to see a good solution to this :) – jonnep Mar 05 '14 at 15:17
  • In fact you are looking for XML comparison tool. – kletnoe Mar 05 '14 at 16:49
  • Various XML comparison tools mentioned in this thread. http://stackoverflow.com/questions/1871076/are-there-any-free-xml-diff-merge-tools-available – Dijkgraaf Mar 06 '14 at 02:21
  • Visual Studio is good enough for that, but you still have to manage the conflicts. Even the tiniest change to a bindings mixes up the order the same level XML nodes and causes too many conflicts to manage. – Arsen Magomedov Mar 06 '14 at 07:37
  • 1
    @Arsen, VS compares XML files as text, but you are interested in something like this: http://www.altova.com/diffdog/xml-diff.html – kletnoe Mar 06 '14 at 09:13
  • 1
    DiffDog was one of the various XML comparison tools mentioned in the thread I linked. – Dijkgraaf Mar 06 '14 at 21:48
  • It would be even cooler if that merge tool could take the tokenized PortBindingsMaster.xml, the SettingsFileGenerator.xml with the token values and a binding file exported from an environment and then allow you to compare and merge and update the PortBindingsMaster.xml with the tokenized settings. Anyone want to start an Open Source Project to create one? – Dijkgraaf May 19 '16 at 21:59
  • Possible duplicate of [Generating BTDF settings file generator](http://stackoverflow.com/questions/26211955/generating-btdf-settings-file-generator) – Dijkgraaf May 19 '16 at 22:35

2 Answers2

1

Too much trouble trying to merge these. Get comfortable with the structure of a binding file and extract the parent node you need and copy it over to PortBindingsMaster.

The other problem with merging is if you use settingsfilegenerator, you'll need to merge that which can be potentially everywhere in PortBindingsMaster.

Ralph
  • 138
  • 2
  • 9
0

There's a coolway by using NotePad++ Pretty XML plugin. Apply pretty xml to both Binding Files.

Ed Bangga
  • 12,879
  • 4
  • 16
  • 30