Page 1 of 1

Delete all the comments in one go in oXygen Author

Posted: Thu Mar 28, 2019 2:06 pm
by virals
Is there any way to delete all <!-- --> (XML comments) from an XML file(s) in one go?

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

Posted: Fri Mar 29, 2019 12:52 am
by mdslup
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.

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

Posted: Fri Mar 29, 2019 9:06 am
by Radu
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