How to remove a word from a element

<oXygen/> general issues.
ramanath18
Posts: 2
Joined: Thu May 23, 2019 12:09 pm

How to remove a word from a element

Post by ramanath18 » Thu May 23, 2019 12:16 pm

Hi,
I want to remove a single word form a heading (<title>). I used the XML refactoring option (Delete element content) but it removes all the content.
But I need to remove an only a single word from the title.
Is there any option to do this?
Could anyone of you please assist on this, as I want to do this on n number files.

Thanks in advance.
Ram

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

Re: How to remove a word from a element

Post by Radu » Thu May 23, 2019 12:45 pm

Hi Ram,

How about if you use our "Find/Replace in Files" dialog? It has a "Restrict to XPath" field where you can input //title and it will only perform the replacement in titles.
Otherwise you can create your own refactoring XSLT stylesheet:

https://www.oxygenxml.com/doc/versions/ ... tools.html

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

ramanath18
Posts: 2
Joined: Thu May 23, 2019 12:09 pm

Re: How to remove a word from a element

Post by ramanath18 » Thu May 23, 2019 3:46 pm

Thank you very much Radu.
It's worked.

Ram

Post Reply