Loading an XML document using php - not working $xmlDoc = new DOMDocument(); $xmlDoc->load(xmlurl)

0 votes

I am trying to load an xml document using php but does not seem to work

I tried the same code on another server and it works

Link to test file on afrihost

https://www.complianceden.co.za/xmldomloading.php 

link to test file on other server

http://saafs.eu5.org/xmldomloading.php

Php file content

<?php

//Test loading xml document

$xmlDoc = new DOMDocument();

$xmlDoc->load("http://xbrl.cipc.co.za/taxonomy/2016-08-31/rep/cipc/formula/for_cipc_full_ifrs_2016-08-31.xml");

//This line should print out the contents of the xml document to the browser

print $xmlDoc->saveXML();

?>

asked Sep 23 in Shared Hosting by chimwemwe (140 points)

1 Answer

0 votes

Good day

I trust you are well,

Kindly forward your request to hosting support: hosting@afrihost.com

If you require further assistance,   

please send a message to our WhatsApp helpline: https://whatsapp.afrihost.com  

or visit our Help Centre: https://help.afrihost.com/  

or see our FAQ page: http://faq.afrihost.com

answered Oct 9 by Nino (8,400 points)
...