Delete all the comments in one go in oXygen Author

Questions about XML that are not covered by the other forums should go here.
virals
Posts: 1
Joined: Thu Mar 28, 2019 1:55 pm

Delete all the comments in one go in oXygen Author

Post by virals » Thu Mar 28, 2019 2:06 pm

Is there any way to delete all <!-- --> (XML comments) from an XML file(s) in one go?

mdslup
Posts: 126
Joined: Tue Mar 06, 2018 1:34 am

Re: Delete all the comments in one go in oXygen Author

Post by mdslup » Fri Mar 29, 2019 12:52 am

In text mode, you could use a regular expression to do a find/replace, like this:

https://i.imgur.com/Lf1oTSD.png

Check the "Regular expression" box in the bottom right. Then search for:"

<!--.*-->

and replace with nothing.

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

Re: Delete all the comments in one go in oXygen Author

Post by Radu » Fri Mar 29, 2019 9:06 am

Hi,

And if you want to remove all comments in one or multiple files, in the Oxygen main menu Tools->XML Refactoring there is a Delete comments operation which can be performed on multiple files.

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

Stereotaxis
Posts: 1
Joined: Thu Sep 26, 2019 3:50 pm

Re: Delete all the comments in one go in oXygen Author

Post by Stereotaxis » Mon Oct 07, 2019 2:49 pm

Looking forward to see the suggestions of others.

Post Reply