simplexml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi 

 

I'm using simplexml to create some xml files.

Here's a stripped example, how can I get this to work? Tried millions
different ways still no joy.

 

<?php

header("Content-type: text/xml");

 

$xml = simplexml_load_string('<root></root>');

$root = $xml->addChild('tests');

$root->addChild('test', 'test & test');

 

echo $xml->asXML();

?>

 

// cheers jo


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux