How to convert PHP array to DOM XML nodeList?

HoomEnfollege

New Member
I'm looking for a DOM XML function to convert PHP array like this:\[code\]<?php$errors = array("A", "B", "C", "D");?>\[/code\]to DOM XML NodeList\[code\]<?xml version="1.0" standalone="no"?><error> <missing>A</missing> <missing>B</missing> <missing>C</missing> <missing>D</missing></error>\[/code\]Thank you very much for your help :)I tried the following code:\[code\]<?php$basedoc = new DomDocument();$basedoc->Load("Standard.svg"); //Fichier SVG de base$baseroot = $basedoc->documentElement; //On prend l'
 
Back
Top