Find/Replace in Files to ignore end tags?

<oXygen/> general issues.
EarlMorton
Posts: 17
Joined: Wed Jan 11, 2017 11:27 pm

Find/Replace in Files to ignore end tags?

Post by EarlMorton » Mon Oct 08, 2018 6:50 pm

In the Find/Replace in Files function, when searching for element names, is it possible to tell the function to ignore end tags? I often use this function to find all instances of a particular element in a body of XML documents, so I can see how the elements are used or what data they contain. These searches often return thousands of results, and the fact that it shows both the beginning tag and the ending tag for each one doubles the amount of data that I have to look through. Is there a way to eliminate all the end tags from the search results?

Radu
Posts: 6205
Joined: Fri Jul 09, 2004 5:18 pm

Re: Find/Replace in Files to ignore end tags?

Post by Radu » Tue Oct 09, 2018 8:31 am

Hi Earl,

If you go to the Oxygen main menu Find->Find All Elements, this dialog should help you locate all elements with a certain name, attribute or text content.
Or as an alternative search for "<elementName" instead of "elementName" to find only the start tags. Select the "<elementName" and then use our "Ctrl-Shift-F" shortcut to find all matches in the document.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

EarlMorton
Posts: 17
Joined: Wed Jan 11, 2017 11:27 pm

Re: Find/Replace in Files to ignore end tags?

Post by EarlMorton » Tue Oct 09, 2018 5:16 pm

Oh, OK! Starting with the < works. I need to turn off the "Enable XML search options" checkbox, which means my results might include elements that have been commented out, so I'll need to watch for that.

Thanks!

Post Reply