I have this XML file:
<meps><mep><fullName>Carlos ZORRINHO</fullName><country>Portugal</country><politicalGroup>Group of the Progressive Alliance of Socialists and Democrats in the European Parliament</politicalGroup><id>124739</id><nationalPoliticalGroup>Partido Socialista</nationalPoliticalGroup></mep><mep><fullName>Željana ZOVKO</fullName><country>Croatia</country><politicalGroup>Group of the European People's Party (Christian Democrats)</politicalGroup><id>185341</id><nationalPoliticalGroup>Hrvatska demokratska zajednica</nationalPoliticalGroup></mep><mep><fullName>Marco ZULLO</fullName><country>Italy</country><politicalGroup>Non-attached Members</politicalGroup><id>125237</id><nationalPoliticalGroup>Movimento 5 Stelle</nationalPoliticalGroup></mep><mep><fullName>Milan ZVER</fullName><country>Slovenia</country><politicalGroup>Group of the European People's Party (Christian Democrats)</politicalGroup><id>96933</id><nationalPoliticalGroup>Slovenska demokratska stranka</nationalPoliticalGroup></mep></meps>
And I'd like to get a sed expression which finds the text inside all the "politicalgroup" tag. I've tried with:
sed -n 's:.*\(<politicalgroup">.*</politicalgroup>\).*:\1:p'
But didn't get any result. What am I doing wrong?
Thank you