Sample Header Ad - 728x90

How to untag, in an XML file, a chain of tagged characters that are embedded within specified tags

2 votes
1 answer
144 views
What is the xmlstarlet command to untag, in an XML file, a chain of tagged characters that are embedded within specified tags? Example: searching every occurrence of the tag , that needs to be deleted only if it is within the ... tag: * Input example:
This is an example. This is a test;
* Desired output:
This is an example. This is a test;
For the sake of generalization, I am keeping the second sentence in the example, i.e.
This is a test;
but if it is an issue, it can be ignored.
Asked by Matt5 (87 rep)
May 7, 2022, 10:19 AM
Last activity: May 7, 2022, 02:29 PM