Hi everyone and thank you for your assistance in advance,
I have a xml file which has blocks and need to modify a part at each block
Eg.
`<Block1>
<Text>0/12345</Text>
<Grammar>12/123456789</Grammar>
<Paragraph>13/1234</Paragraph>
</Block1>`
`<Block2>
<Text>12/123457</Text>
<Grammar>1/1234</Grammar>
<Paragraph>213/1222234</Paragraph>
</Block2> `
I need a script that can modify the text wherever I have
<Text> </Text>
as follows:
`<Text>0/12345</Text> --> <Text>12345</Text>
<Text>12/123457</Text> --> <Text>123457</Text>`
In other words,
0/
or
12/
should be eliminated, including the
"/"
point within the
<Text> </Text>
Length of both barts may vary.
I don’t want to write a program for this and I want to have something simple, maybe a batch file.
Thank you,
Tassos
I didn’t want to go through a new program for this so I though a simple script, if any, would do the job, since this is only something minor
Anastasios Hadjistephanou is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.