Hi,
I have just managed to install DOMXML on my apache/PHP setup. I am
running PHP 4.3.0 and Apache2.
$xmldoc = domxml_open_file("inc/menu.xml",
DOMXML_LOAD_DONT_KEEP_BLANKS);
When I try to load an XML file using the above, it gives me the
following error:
Warning: domxml_open_file(): I/O in
C:\apache\Apache2\htdocs\webdev\cms\inc\menu.php on line 147
Warning: domxml_open_file(): warning : in
C:\apache\Apache2\htdocs\webdev\cms\inc\menu.php on line 147
Warning: domxml_open_file(): failed to load external entity
"inc/menu.xml" in C:\apache\Apache2\htdocs\webdev\cms\inc\menu.php on
line 147
I have also tried to load the contents of the xml file into a string in
the following way:
$content = file_get_contents("inc/menu.xml");
$xml_doc = domxml_open_mem($content, DOMXML_LOAD_DONT_KEEP_BLANKS);
...giving me the following error:
Warning: domxml_open_mem(): Opening and ending tag mismatch: opt line 4
and menu in C:\apache\Apache2\htdocs\webdev\cms\inc\menu.php on line
147
Warning: domxml_open_mem(): Premature end of data in tag menu line 2 in
C:\apache\Apache2\htdocs\webdev\cms\inc\menu.php on line 147
Is PHP recognising the DOMXML functions? I have tried using an XML file
that I know works as well as just loading a very simple one in but it
still gives me an error. I also tried using xmldocfile() but I got the
same error. Any ideas?
Burnsy