Bonjour
je travail dans un projet qui consiste à lire un fichier xml ! avec JavaScript/Ajax.

le fichier xml est à cette adresse: http://www.velib.paris/service/stationdetails/paris/901

voici jusqu'ici mon code javascript :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
function getReadXmlFile(){
$.ajax({
			type: "GET",
			url: "http://www.velib.paris/service/stationdetails/paris/901",
			dataType: "xml",
			success: parseXml
		});
		alert("obtention du fichier");
};
function parseXml(xml){
 
var up=$(xml).find("updated").text;
alert(up);
 
}
Merci beaucoup à vous tous