Question : edit ad add to xml fie

Hi, I am using vb.net and looking hopefully for a simpler function that i can use to update my plain xml file.

How would i search for a specific element [DistribID] and then update the value and save?


thanks


 
    ELNumDaysionName>
    1e>
 

 
    DistribIDionName>
    CPClue>
 

Answer : edit ad add to xml fie

here
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
<script>
var anHour = 60*60*1000;
function getNbengTime(costs,nbeng) {
  var hours =  costs / (nbeng * 3) ;
  var fract = hours-parseInt(hours);
  hours=parseInt(hours);
  var milisecs = parseInt(anHour*fract)
  var secs = parseInt(milisecs/1000);
  var mins = parseInt(secs/60)
  secs -= (mins*60)
  if (mins<10) mins="0"+mins;
  if (secs<10) secs="0"+secs;
  return hours+':'+mins+':'+secs;
}

alert(getNbengTime(145,1))
</script>
Random Solutions  
 
programming4us programming4us