IS THERE ANY WAY TO REMOVE THESE TAGS AUTOMATICALLY?
<icon src="https://www.montecable.com/img/senales/406-tvciudad.png" />
<url>http://www.montecable.com</url>
ACTUALLY IN MY PROGRAMMING GUIDE THESE LABELS DO NOT USE ME AND WHEN I MAKE MODIFICATIONS IN MY GUIDES, FOR EXAMPLE, WHEN I ADD A NEW CHANNEL, I USUALLY ADD THE ID OF THE NEW CHANNEL MANUALLY TO ADD IT WITHOUT THESE LABELS.
try with rex <icon></icon>
thats wont work as rex only works with elements within the <programme </programme> tags.
he wants to remove the icon and url tags from the <channel </channel> sections.
you will have to use a external program like sed,ect to remove those.
do some searching.
example
sed -i "/<url/d" guide.xml
this will remove the <url tag
sed -i "/<icon/d" guide.xml
will remove the icon tag but your going to loose the showicon along with the channel logo as they both use <icon
Thank you so much, Blackbear's solution worked for me! Thanks :)