I have an xml that starts like that
<?xml version="1.0"?><History xmlns="http://www.tandberg.no/XML/CUIL/1.0">
And i'm having problem selecting elements in it because of this namespace. I want to select it and delete using xmlstarlet.
I tried:
xmlstarlet ed -d '//@xmlns' history.xml
xmlstarlet ed -d '//@[local-name()=xmlns]' history.xml
But all the time i get "xpath set is empty"