- simplexml_load_string: documentation ( source)
<?php
$xml = "http://54.186.220.102/Logins.xml";
$xml = simplexml_load_string( $xml);
foreach( $xml->xpath( './/User') as $child) {
if($child->attributes()['_un'] == "Farach"){
$child->UserInfo->attributes()['_cr'] = 100;
}
}