Ok. I really appreciate this. I will leave you at it but I did find a few odd things when I exported the XML of each Major Power Force Pool. But I will not bother you with those right now.
Notice the unit counts are all reset to 0. The only way to get it to reflect the correct total is to remove all the counters from each Deck and add them back in. Then the counts are correct.
I haven’t worked on this. The Unit count will be fixed. It’s it actually broken, It’s failing because there ends up being two of the same Decks in the same place, one of which is empty.