How can I use XMLParser to get the item->@url, item->@replace and item->”value inside”
for the content as a string of the node where item->@cone=”one”?
<cstep>
<item cone="one"
url="http://google.com/{ccc}/cthree"
replace="{ccc}">
<itemsub conesub="conesub">
<itemsubsub conesubsub="conesubsub" />
</itemsub>
</item>
<item cone="two"
url="http://google.com/{ccc}/cthree"
replace="{ccc}">
<itemsub conesub="conesub">
<itemsubsub conesubsub="conesubsub" />
</itemsub>
</item>
</cstep>
XML::Twig:
UPDATE: To answer a question in the comments about assigning to
$urloutside of the sub: