Bonjour je ne sais pas si c'est ici que je devais poser ma question ou dans la section Xml ?
Quelqu'un pourrait m'aider pour la création d'un fichier XML avec le shéma en exemple plus bas ?
Jusqu'à maintenant pour la création d'un fichier xml je construisais en boucle
une variable string comme ça
string toto = "<xml toto>"
toto += "<titi>"
toto += "</titi>"
etc ....
je voudrais la faire via les commande xml dot.net2 j'ai quelques exemples mais pas dans le structure de mon fichier
<?xml version="1.0"?>
<photoalbum>
<parameters noofcolumn="15" noofrow="2" thumbxs="80" thumbys="470" thumbwidth="50" thumbheight="50"/>
<album albumname="Juin 2006">
<images>
<image imagename="photo1.jpg" />
<image imagename="photo2.jpg" />
<image imagename="photo3.jpg" />
</images>
</album>
<album albumname="Juillet">
<images>
<image imagename="photo10.jpg" infotext=""/>
<image imagename="photo11.jpg" infotext=""/>
</images>
</album>
</photoalbum>
Partager