Script d'Ecriture

xmlOption('EOL', true)
xmlOption('TAB', true)
xmlheader(xml)
xmlbegin(xml, 'rep', 0)
xmlbegin(xml, 'salarie',1)
xmlAttr(xml, 'dossier', '998')
xmlbegin(xml, 'individu',2)
xmlAttr(xml, 'code', '12')
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'nomusuel')
xmlAttr(xml, 'valeur', 'Saunier')
xmlend(xml, 'champ',3)
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'prenom')
xmlAttr(xml, 'valeur', 'Sylvie')
xmlend(xml, 'champ',3)
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'titre')
xmlAttr(xml, 'valeur', 'Mme')
xmlend(xml, 'champ',3)
xmlend(xml, 'individu',2)
xmlbegin(xml, 'contrat',2)
xmlAttr(xml, 'individu', '12')
xmlAttr(xml, 'num', '3')
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'profil')
xmlAttr(xml, 'valeur', 'cadre')
xmlend(xml, 'champ',3)
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'entree')
xmlAttr(xml, 'valeur', '01/01/2010')
xmlend(xml, 'champ',3)
xmlend(xml, 'contrat',2)
xmlend(xml, 'salarie',1)
xmlbegin(xml, 'salarie',1)
xmlAttr(xml, 'dossier', '998')
xmlbegin(xml, 'individu',2)
xmlAttr(xml, 'code', '13')
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'nomusuel')
xmlAttr(xml, 'valeur', 'Roc')
xmlend(xml, 'champ',3)
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'prenom')
xmlAttr(xml, 'valeur', 'Xavier')
xmlend(xml, 'champ',3)
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'titre')
xmlAttr(xml, 'valeur', 'M.')
xmlend(xml, 'champ',3)
xmlend(xml, 'individu',2)
xmlbegin(xml, 'contrat',2)
xmlAttr(xml, 'individu', '13')
xmlAttr(xml, 'num', '1')
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'profil')
xmlAttr(xml, 'valeur', 'employe')
xmlend(xml, 'champ',3)
xmlbegin(xml, 'champ',3)
xmlAttr(xml, 'nom', 'entree')
xmlAttr(xml, 'valeur', '15/02/2012')
xmlend(xml, 'champ',3)
xmlend(xml, 'contrat',2)
xmlend(xml, 'salarie',1)
xmlEnd(xml, 'rep', 0)