You can read about reading XML here: https://www.php.net/manual/en/book.simplexml.php
$xmlstr = '
<consts>
<const name="IAn" value="500" um="" />
<const name="IBn" value="500" um="" />
<const name="ICn" value="500" um="" />
</consts>
';
In your example, you need to realize that the name attribute may not be unique.
You could access ALL the elements that have the name attribute value you are looking for. Or maybe you just want the first one.
$consts = new SimpleXMLElement($xmlstr);
foreach($consts as $elem) {
if ( $elem['name'] == 'IAn' ) {
echo $elem['value'] . "\n";
}
}