<< BACK TO LAB LIST

PHP array to XML


OPEN: Online Tool
This tool gives you ability to convert PHP multidimensional array to XML. Conversion is compatible with DATA Transformer

Conversion with default node names:

array(1, 2);
will give us:
   
      1
      2
   
   

Conversion with defined node names:

array('one'=>1, 'two'=>array(1, 2));
will give us:
   
      1
      
         1
         2
      
   
   

Conversion with special instructions (@attributes, @cdata, @value):

   array(
      'one'=>array(
         '@attributes'=>array('att1'=>1, 'att2'=>2),
         '@value'=>123
      ),
      'two'=>array(
         '@cdata'=>'exampletext',
      )
   );
   
will give us:
   
      123
      
   
   
Project By Visionlore