mr_hacker Posted October 8, 2009 Share Posted October 8, 2009 im trying to built an xml content based management system with php. the code is listed below.... $doc = domxml_new_doc("1.0"); //$doc = new DOMDocument("1.0"); $root = $doc->create_element("article"); $root = $doc->append_child($root); $root->set_attribute('id', $dir_name); //create headline $head = $doc->create_element("headline"); $head = $root->append_child($head); $htext = $doc->create_text_node($headline); $htext = $head->append_child($htext); $filename = "./dir_name/".$dir_name . ".xml"; But find an error, during this... Call to undefined function domxml_new_doc() im using php 5 version. can any one suggests??? Quote Link to comment https://forums.phpfreaks.com/topic/176939-xml-based-cms-with-phpplz-suggests-its-urgent/ Share on other sites More sharing options...
Adam Posted October 8, 2009 Share Posted October 8, 2009 It's part of the DOM XML extension: http://www.php.net/manual/en/intro.domxml.php Note: This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.0.0. Try using the DOM extension: http://www.php.net/manual/en/book.dom.php Quote Link to comment https://forums.phpfreaks.com/topic/176939-xml-based-cms-with-phpplz-suggests-its-urgent/#findComment-932902 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.