practice the js to handle the xml