Check that the file employees.xml exists, and try providing it with an absolute reference rather than relative (eg: "c:\\xmlfiles\\employees.xml"). Also check that the xml file renders ok in Internet Explorer.
> the line that gives the error... > > Warning: failed to load external entity "employees.xml" in > C:\Inetpub\wwweloanshop\test\xml.php on line 36 > What employees? > > is... > > $doc = xmldocfile("employees.xml") or die("What employees?"); > > "Lallous" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> hmm! >> >> 1)Can you show the code @ line 36 if possible >> 2)try to escape the "\" (replace every \ with \\) >> >> >> "Brian McGarvie" <[EMAIL PROTECTED]> wrote in >> message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> > I have a problem with DOMXML... >> > >> > I installed it and it is showing up in a phpinfo() script... >> > >> > However when I try a simple example it gives me an error such as: >> > >> > Warning: failed to load external entity "employees.xml" in >> > C:\Inetpub\wwweloanshop\test\xml.php on line 36 >> > >> > Any hints? >> > >> > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - >> www.anypurposeloans.com ] >> > >> > >> >> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software & Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php