title: Simple webgame highscore system with XML
body: <p>I am new to web game development and I am trying to do a web canvas game for a competition.<br></p>
  
  <p>I have finished most of the codes but I am having problems with the highscore system which is a requirement for the game.<br></p>
  
  <p>I have access to the server where I can host my game but it does not support SQL. <br>
  I am thinking of using only XML and ajax to manage the highscore.<br></p>
  
  <p>Is this possible? Is that any reference that I can look into?<br></p>
  
  <p>So far I haven't find a way to modify XML files with ajax directly.<br></p>
  
  <p>I am aware that php is able to modify XML files, but I am also not sure whether the server will be able to support that.<br></p>
  
  <p>Do all php servers support handling of XML files the same way? <br></p>
  
  <p>(I know there is a difference between php 4 and php 5)<br></p>
  
  <p>Any detailed tutorial on how to modify XML files in JavaScript will be appreciated. <br></p>
  
  <p>Thanks.</p>
  
  <p>Also, the organizer has provided this document which is supposed to help with the highscore system:</p>
  
  <hr>
  
  <p>1 Create a text or XML file to store top 10 scores</p>
  
  <p>To be able to store your game high-scores online you will need an Web-server and an online database. Hence, create a empty text file that will act like a database. </p>
  
  <p>Determine what will be the delimiter to identify/separate each score. (Delimiter can be a “,” or line break, etc)</p>
  
  <p>2 Recording of High Scores</p>
  
  <p>To be able to establish this highscore list in your text file, you first have to collect the score of player once player had completed his game.</p>
  
  <p>With the collected score, your system will need to access the text file’s content.</p>
  
  <p>If the score collected is higher than the 10 scores in the text file, write the collected score inside the text file. Otherwise, discard the collected score. </p>
  
  <p>If collect score had been written inside the text file, the game will re-arrange the standings of all the top 10 scores. And the last score which is previously recorded in the text file will be removed.</p>
  
  <p>Tips to note</p>
  
  <p>To avoid hacking, input parameters should be handled properly</p>
  
  <p>You may wish to add some verification into the send scores, so someone cannot easily manipulate the scores by manually sending one.</p>