Bonjour à tous,
je suis nouveau sur le forum et je développe actuellement avec Webdev/Windev et je rencontre un petit souci technique. Je souhaiterai faire la manipulation xml suivante :
J’ai un fichier XML en entré
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <?xml version="1.0" encoding="UTF-8"?> <operations attribut1="XXX" attribut2="XXX" attribut3="XXX" attribut4="XXX"> <operation numeroOperation="00001" attribut1="XXX" attribut2=" XXX" attribut3=" XXX " attribut4=" XXX "> </operation> <operation numeroOperation="00002" attribut1="XXX" attribut2=" XXX" attribut3=" XXX" attribut4=" XXX "> </operation> <operation numeroOperation="00003" attribut1="XXX" attribut2=" XXX" attribut3=" XXX" attribut4=" XXX "> </operation> </operations>
et j’aimerai lors de l’import de ce fichier global, le découper en plusieurs fichiers pour obtenir les fichiers ci-dessous :
- « operation1.xml » :
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <?xml version="1.0" encoding="UTF-8"?> <operations attribut1="XXX" attribut2="XXX" attribut3="XXX" attribut4="XXX"> <operation numeroOperation="00001" attribut1="XXX" attribut2=" XXX" attribut3=" XXX " attribut4=" XXX "> </operation> </operations>
- « operation2.xml » :
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <?xml version="1.0" encoding="UTF-8"?> <operations attribut1="XXX" attribut2="XXX" attribut3="XXX" attribut4="XXX"> <operation numeroOperation="00002" attribut1="XXX" attribut2=" XXX" attribut3=" XXX " attribut4=" XXX "> </operation> </operations>
- « operation3.xml » :
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 <?xml version="1.0" encoding="UTF-8"?> <operations attribut1="XXX" attribut2="XXX" attribut3="XXX" attribut4="XXX"> <operation numeroOperation="00003" attribut1="XXX" attribut2=" XXX" attribut3=" XXX " attribut4=" XXX "> </operation> </operations>
Le nombre de fichier est déterminé par la présence des balises <operation> dans le fichier source.
Merci de votre aide.
Cordialement,
Partager