Мне было поручено изменить тысячи файлов вопросов. В каждом файле один вопрос.
Мне нужно изменить файл, подобный этому ...
<xml>
<question>What is the fourth planet from the Sun?</question>
<answer choice="1">Mercury</answer>
<answer choice="2">Venus</answer>
<answer choice="3">Mars</answer>
<feedback choice="1">Incorrect.</feedback>
<feedback choice="2">Incorrect.</feedback>
<feedback choice="3">Correct.</feedback>
<extrafeedback>Mars is the fourth planet from the Sun and is the second smallest planet in the solar system. Named after the Roman god of war, Mars is also often described as the "Red Planet" due to its reddish appearance. </extrafeedback>
</xml>
... в это.
«Extrafeedback» был добавлен перед закрывающими тегами «answer».
<xml>
<question>What is the fourth planet from the Sun?</question>
<answer choice="1">Mercury</answer>
<answer choice="2">Venus</answer>
<answer choice="3">Mars</answer>
<feedback choice="1">Incorrect. Mars is the fourth planet from the Sun and is the second smallest planet in the solar system. Named after the Roman god of war, Mars is also often described as the "Red Planet" due to its reddish appearance.</feedback>
<feedback choice="2">Incorrect. Mars is the fourth planet from the Sun and is the second smallest planet in the solar system. Named after the Roman god of war, Mars is also often described as the "Red Planet" due to its reddish appearance.</feedback>
<feedback choice="3">Correct. Mars is the fourth planet from the Sun and is the second smallest planet in the solar system. Named after the Roman god of war, Mars is also often described as the "Red Planet" due to its reddish appearance.</feedback>
<extrafeedback>Mars is the fourth planet from the Sun and is the second smallest planet in the solar system. Named after the Roman god of war, Mars is also often described as the "Red Planet" due to its reddish appearance.</extrafeedback>
</xml>
У меня есть Notepad ++ и Oxygen XML Editor, но я открыт для изучения чего-то нового.