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_fil e("inc/menu.xml",
DOMXML_LOAD_DON T_KEEP_BLANKS);
When I try to load an XML file using the above, it gives me the
following error:
Warning: domxml_open_fil e(): I/O in
C:\apache\Apach e2\htdocs\webde v\cms\inc\menu. php on line 147
Warning: domxml_open_fil e(): warning : in
C:\apache\Apach e2\htdocs\webde v\cms\inc\menu. php on line 147
Warning: domxml_open_fil e(): failed to load external entity
"inc/menu.xml" in C:\apache\Apach e2\htdocs\webde v\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_conten ts("inc/menu.xml");
$xml_doc = domxml_open_mem ($content, DOMXML_LOAD_DON T_KEEP_BLANKS);
...giving me the following error:
Warning: domxml_open_mem (): Opening and ending tag mismatch: opt line 4
and menu in C:\apache\Apach e2\htdocs\webde v\cms\inc\menu. php on line
147
Warning: domxml_open_mem (): Premature end of data in tag menu line 2 in
C:\apache\Apach e2\htdocs\webde v\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
I have just managed to install DOMXML on my apache/PHP setup. I am
running PHP 4.3.0 and Apache2.
$xmldoc = domxml_open_fil e("inc/menu.xml",
DOMXML_LOAD_DON T_KEEP_BLANKS);
When I try to load an XML file using the above, it gives me the
following error:
Warning: domxml_open_fil e(): I/O in
C:\apache\Apach e2\htdocs\webde v\cms\inc\menu. php on line 147
Warning: domxml_open_fil e(): warning : in
C:\apache\Apach e2\htdocs\webde v\cms\inc\menu. php on line 147
Warning: domxml_open_fil e(): failed to load external entity
"inc/menu.xml" in C:\apache\Apach e2\htdocs\webde v\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_conten ts("inc/menu.xml");
$xml_doc = domxml_open_mem ($content, DOMXML_LOAD_DON T_KEEP_BLANKS);
...giving me the following error:
Warning: domxml_open_mem (): Opening and ending tag mismatch: opt line 4
and menu in C:\apache\Apach e2\htdocs\webde v\cms\inc\menu. php on line
147
Warning: domxml_open_mem (): Premature end of data in tag menu line 2 in
C:\apache\Apach e2\htdocs\webde v\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
Comment