I have one really big file xml. The stucture is like this:
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1">Rai 1</channel>
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +2HD">Rai 1 +2HD</channel>
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="Rai 1 +1HD">Rai 1 +1HD</channel>
I want synk the field "site_id" with the field "xmltv_id" I need something like this:
<channel update="i" site="merge-xmltv" site_id="Rai 1" xmltv_id="Rai 1">Rai 1</channel>
<channel update="i" site="merge-xmltv" site_id="Rai 1 +2HD" xmltv_id="Rai 1 +2HD">Rai 1 +2HD</channel>
<channel update="i" site="merge-xmltv" site_id=""Rai 1 +1HD" xmltv_id="Rai 1 +1HD">Rai 1 +1HD</channel>
I tried with the command
xml ed -u "/channel/@site_id" -x "concat(/channel/@xmltv_id)" test.xml
but i think is really wrong :(