R
R
Roman Grigoriev2015-02-04 19:43:14
XML
Roman Grigoriev, 2015-02-04 19:43:14

How to bulk replace tags in xml?

There is an xml document at the exit of the program (software for entering and storing patient data), there is a list of tags (about 30 pieces) that need to be replaced with other tags - for processing by another program (Patient data is transferred from one database to another)
Dam an example of what I do manually -
<TEXT26>ANISIMOVTEXT26>
...replace in the document with WordPad to
ANISIMOV
And the program eats only this way, because it does not accept <TEXT26> tags from another program - it gives an import error.
The fact is that I have it on stream - but I’m already fed up with manually rewriting, and the authorities are increasing the number of patients. I think this can be automated with some script? Please, kind people, give a solution. I know a little only in HTML / CSS / JS, but my fragile mind cannot tie it all together to get a good output script.
Thanks in advance! Of good!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OlegLazarenko, 2015-02-04
@OlegLazarenko

https://gist.github.com/OlegLazarenko/dc726185552b...
Made in php, try it.
If you can't figure it out - leave skype, I'll help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question