XML refactoring preview highlights namespace declarations
Posted: Fri Nov 03, 2017 10:25 pm
I'm exploring the XML Refactoring tool, and I decided to try making a simple change: sec/title => sec/label
In the 'Rename element' dialog box, I specified this:
https://www.dropbox.com/s/rpiojvn5odi47gp/XML%20refactoring%201.png?dl=0
But the preview showed this, highlighting namespace declaration changes that I didn't request:
https://www.dropbox.com/s/byhwjdlxy95ydkw/XML%20refactoring%202.png?dl=0
It turns out the preview also showed the changes I wanted, but I had to scroll past a number of namespace declaration changes to find them. When I clicked Finish, the changes I wanted were made, but all the highlighted namespace declarations had been deleted as well.
Shouldn't the refactoring tool make only the requested changes?
In the 'Rename element' dialog box, I specified this:
https://www.dropbox.com/s/rpiojvn5odi47gp/XML%20refactoring%201.png?dl=0
But the preview showed this, highlighting namespace declaration changes that I didn't request:
https://www.dropbox.com/s/byhwjdlxy95ydkw/XML%20refactoring%202.png?dl=0
It turns out the preview also showed the changes I wanted, but I had to scroll past a number of namespace declaration changes to find them. When I clicked Finish, the changes I wanted were made, but all the highlighted namespace declarations had been deleted as well.
Shouldn't the refactoring tool make only the requested changes?