Fonction Scilab
eng - fr


put_xml_sk - fonction squelette pour la mise à jour de fichier xml

Librairie

Paramètres

Description

Add here a paragraph of the function description.

Contenu du fichier


//put_xml_
//Fonction qui insère un
//dans un fichier xml contenant des délimiteurs
//<> et </>
//Entrée : txt : matrice de chaînes de caractères de taille n,
//         
//         
//         filen : nom du fichier xml (ex:filen=xml_path+'CAN_f.xml')
function new_tt=put_xml_(txt,filen)
 if fileinfo(filen)<>[] then
  if size(txt,2)== then
    del1='<>'
    del2='</>'
    tt_sav=mgetl(filen);
    //trouve la position des délimiteurs
    for i=1:size(tt_sav,1)
     if strindex(tt_sav(i),del1)<>[] then a=i, end;
     if strindex(tt_sav(i),del2)<>[] then b=i, end;
    end
  else
   printf("Incompatible rsh variable\n");
  end
 else
  printf("File %s not found\n",filen);
  new_tt=[];
 end
endfunction 

Auteurs

IRCOM Group Alan Layec