Find/Replace in Files to ignore end tags?

<oXygen/> general issues.
EarlMorton
Posts: 9

Find/Replace in Files to ignore end tags?

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: 5751

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

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: 9

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

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!

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests