Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.