Replace <RemoteButton> and </RemoteButton> with two unused characters, like ¬ and |
Search for ¬\s*<Name>X-Fi[^|]*| (with multi-line)
Replace back ¬ and | with <RemoteButton> and </RemoteButton>
If Notepad does not have multi-line matching, find another editor that does, it's an essential feature. (In Sigil, you can copy-paste the result, instead of saving.)
|