create a new XML from PHP script

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
amlan_08
Forum Newbie
Posts: 11
Joined: Sun May 22, 2005 1:24 am

create a new XML from PHP script

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply