I made a huge error in a gigantic XML file.
<item1>
<item2>
<item1>
//.. tons of stuff...
</item1>
</item2>
</item1>
I need to replace the outer item1 with something else. But find and replace isn’t working because of the matching inner item1. I’ve tried searching by multiple pieces of information, but the single-line nature of every find and replace I find makes it impossible, and all of the data is tabbed.
Any ideas?
Can you use the tabs to your advantage? If it is as regular as your example then you can probably search and replace on
\t\t\t<item>(or whatever syntax you need to search with tabs) with whatever else you need.