But could I ask how/when do I use the domxml_open_mem()? Both domxml_open_file() and domxml_open_mem() parse the xml document and look almost the same thing to me. This could be a dumb or silly question?
Cactus, Once again thank you for your direction. It works fine now. But one funny thing is it only works well with the domxml_open_file but not the domxml_open_mem function. For your reference, the contents in the xml file are as follows: <?xml version="1.0" encoding="ISO-8859-1"...
Hi Cactus, Thks for your info. I have installed the GNOME XML library and added this "--with-dom = 'C:\libxml2-2.5.7' " in my php.ini file. Then I reboot Apache and ran the php_info, I am not sure where do I look for this info. I browsed thro' the whole page and could not find it. Is there...
Hi, I am new here and I just began to learn DOM and PhP. :D I wrote this small program in php version 4.3.1 <?php if (!$doc=domxml_open_mem("xml/cd_catalog.xml")){ echo "Error while parsing"; exit; } $root = $doc->document_element(); print ("The name of the root element is :...