marcostimm
6 Nov 2009, 5:51 AM
Hello Everybody,
I post on my blog a PHP class to generate XML easily from an associative array.
facilitating the completion of Grid and Combobox's...
Use Example:
header("Content-type:application/xml; charset=utf-8");
$tmp = $DB->Busca("SELECT id, nome FROM usuarios");
$objXml = new Xml();
$objXml->addContent($tmp,'usuarios');
echo $objXml->showXML();
Easy, right?
You can download it in my blog:
http://marcos.blog.br/2009/11/classe-php-para-gerar-xml/
Or in PHPClasses.org:
http://www.phpclasses.org/browse/package/5769.html
best regards,
Marcos Timm Rossow.
I post on my blog a PHP class to generate XML easily from an associative array.
facilitating the completion of Grid and Combobox's...
Use Example:
header("Content-type:application/xml; charset=utf-8");
$tmp = $DB->Busca("SELECT id, nome FROM usuarios");
$objXml = new Xml();
$objXml->addContent($tmp,'usuarios');
echo $objXml->showXML();
Easy, right?
You can download it in my blog:
http://marcos.blog.br/2009/11/classe-php-para-gerar-xml/
Or in PHPClasses.org:
http://www.phpclasses.org/browse/package/5769.html
best regards,
Marcos Timm Rossow.