Hello

je cherche une fonction javascript qui pourrait rajouter un noeud de cette façon
xml initial:
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
 
  <CCLREC name="FindPatients">
  <oRecherche memberCount="9" type="LIST">
  <IPP length="0" type="STRING" /> 
  <IEP length="0" type="STRING" /> 
  <Nom length="4" type="STRING">![CDATA[wawa]]</Nom> 
  <prenom length="0" type="STRING" /> 
  <NomAlias length="0" type="STRING" /> 
  <Sexe length="7" type="STRING">![CDATA[Inconnu]]</Sexe> 
  <DateNaissance length="0" type="STRING" /> 
  <DateAdmissionDebut length="0" type="STRING" /> 
  <DateAdmissionFin length="0" type="STRING" /> 
  </oRecherche>
  <iNbMaxEnregistrement type="INT" value="50">50</iNbMaxEnregistrement> 
  </CCLREC>
xml cible:

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
 
  <CCLREC name="FindPatients">
  <oRecherche memberCount="9" type="LIST">
  <ITEM>
    <IPP length="0" type="STRING" /> 
    <IEP length="0" type="STRING" /> 
    <Nom length="4" type="STRING">![CDATA[wawa]]</Nom> 
    <prenom length="0" type="STRING" /> 
    <NomAlias length="0" type="STRING" /> 
    <Sexe length="7" type="STRING">![CDATA[Inconnu]]</Sexe> 
    <DateNaissance length="0" type="STRING" /> 
    <DateAdmissionDebut length="0" type="STRING" /> 
    <DateAdmissionFin length="0" type="STRING" /> 
  </ITEM>
    </oRecherche>
 
  <iNbMaxEnregistrement type="INT" value="50">50</iNbMaxEnregistrement> 
  </CCLREC>
Une idée?