Page 1 of 1

create a new XML from PHP script

Posted: Fri Aug 12, 2005 1:15 am
by amlan_08
How do I crate an XML file through PHP. I try it with the function domxml_new_doc function. But it shows undefined function whenever I try to execute that script. Can any body tell me what type configuration is required for that?

Posted: Fri Aug 12, 2005 5:06 am
by timvw
Ok, assuming you are on php4 you need to load domxml extension.
It's all explained http://www.php.net/domxml.


(for php5 i advise you use the new dom functions because domxml seems i bit b0rken on php5)

Posted: Fri Aug 12, 2005 5:08 am
by feyd
you require the extension being loaded for it, but it's not all that hard to create xml in the first place.

Moved to Misc.