Jump to content

xml based CMS with php.....plz suggests, its urgent!!!


mr_hacker

Recommended Posts

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???

 

 

 

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.