I have the following xml file. I want to edit it by removing the url and title attributes from every element <doc></doc>. I am looking for a unix command that can help instead of writing a whole code.
<documents>
<doc id="852" url="http://en.wikipedia.org/wiki?curid=852" title="...">
<text>
Some text...
</text>
</doc>
<doc id="853" url="http://en.wikipedia.org/wiki?curid=853" title="...">
<text>
Some text...
</text>
</doc>
<doc id="854" url="http://en.wikipedia.org/wiki?curid=854" title="...">
<text>
some text...
</text>
</doc>
</documents>
sedcould do this.