I
I
ImVeryStupid2020-01-16 12:18:39
XML
ImVeryStupid, 2020-01-16 12:18:39

Arithmetic operation with numbers inside xml tags of the same name?

There is a large xml document, you need to take all the numbers inside the tags of the same name, perform an arithmetic operation with them, return them back, do not touch the rest.
That is, for example, divide all the numbers inside by two. Notepad++ macros cannot do arithmetic, and js I'm afraid that it will spoil the rest of the content after converting to an array and back. What other options are there?
<a> <b>100</b><b>200</b><b>300</b> </a>
<b></b>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-01-16
@NeiroNx

I would work with xml as with dom and not regular expressions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question