I have the following xml. I would like to loop through each node and push the <url>
value into a bash array if <extern> == 1. Any idea how I should approach this?
<GraphXML>
<graph isDirected="true">
<node name="0">
<label>font</label>
<url>http://fonts.googleapis.com/css?</url>
<data>
<checktime>0.262211</checktime>
<extern>1</extern>
</data>
</node>
<node name="1">
<label>logo</label>
<url>http://example.com/example.png</url>
<data>
<dlsize>7545</dlsize>
<checktime>0.280600</checktime>
<extern>0</extern>
</data>
</node>
</graph>
</GraphXML>