Hello Tout Le Monde.

Je dispose de fichier .xml comme ci dessous :

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
18
19
20
21
 <flowData>
      <exchange number="1" location="US"
      name="1111A0 - Oilseed farming" localName="1111A0 - Oilseed farming"
      category="Open IO Carbon" subCategory="agriculture"
      localCategory="Open IO Carbon" localSubCategory="agriculture"
      meanValue="0.0702105219904400" uncertaintyType="1" standardDeviation95="2.09" generalComment="(No uncertainty conducted. Value is placeholder)" unit="USD" infrastructureProcess="false">
        <inputGroup>5</inputGroup>
      </exchange>
      <exchange number="2" location="US"
      name="1111B0 - Grain farming" localName="1111B0 - Grain farming"
      category="Open IO Carbon" subCategory="agriculture"
      localCategory="Open IO Carbon" localSubCategory="agriculture"
      meanValue="0.0219425002397000" uncertaintyType="1" standardDeviation95="2.09" generalComment="(No uncertainty conducted. Value is placeholder)" unit="USD" infrastructureProcess="false">
        <inputGroup>5</inputGroup>
      </exchange>
      <exchange number="8" location="US"
      name="111920 - Cotton farming" localName="111920 - Cotton farming"
      category="Open IO Carbon" subCategory="agriculture"
      localCategory="Open IO Carbon" localSubCategory="agriculture"
      meanValue="0.0139503348902200" uncertaintyType="1" standardDeviation95="2.09" generalComment="(No uncertainty conducted. Value is placeholder)" unit="USD" infrastructureProcess="false">
        <inputGroup>5</inputGroup>
,que je dois importer dans une base de données. Je sais qu'il y a un moyen d'importer des données provenant de fichiers .xml au sein d'une base MySql.
Qu'elle pourrait être la méthode la plus approprié pour mon probleme ?

J'ai vu ce tuto: est ce la bonne solution ?

Merci d'avance pour vos reponses.

RIdrum