Page 1 of 1

Find/Replace in Files to ignore end tags?

Posted: Mon Oct 08, 2018 6:50 pm
by EarlMorton
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?

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

Posted: Tue Oct 09, 2018 8:31 am
by Radu
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

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

Posted: Tue Oct 09, 2018 5:16 pm
by EarlMorton
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!