Automating common tasks
Posted: Wed Nov 22, 2023 11:32 am
Hello,
I'm sure this must be possible, but I'm struggling to find a solution and would appreciate help.
I often have to take poorly structured XML and convert it into something usable, but I seem to spend an awfully long time manually looking for empty tags and deleting them. I'm SURE there must be an easy way to automate this process rather than having to spend hours doing a find and replace for them.
I'm suprised that there isn't an option in Oxygen to record actions and automate them - as all I want to do is have some kind of script that does the following.
Find '<u> <u>' and replace with ''
(Empty U tag)
Find '<i> <i>' and replace with ''
(Empty I tag)
Find any gaps in the text that are more than 3 spaces
etc etc etc
Whilst it can be done manually I'm having to do this pretty much every day and it's taking up longer and longer.
I'd really appreciate if someone can help as it's driving me mad!
Thanks!
I'm sure this must be possible, but I'm struggling to find a solution and would appreciate help.
I often have to take poorly structured XML and convert it into something usable, but I seem to spend an awfully long time manually looking for empty tags and deleting them. I'm SURE there must be an easy way to automate this process rather than having to spend hours doing a find and replace for them.
I'm suprised that there isn't an option in Oxygen to record actions and automate them - as all I want to do is have some kind of script that does the following.
Find '<u> <u>' and replace with ''
(Empty U tag)
Find '<i> <i>' and replace with ''
(Empty I tag)
Find any gaps in the text that are more than 3 spaces
etc etc etc
Whilst it can be done manually I'm having to do this pretty much every day and it's taking up longer and longer.
I'd really appreciate if someone can help as it's driving me mad!
Thanks!