I have been trying Simple XML but I can not navigate through the structure of the file. This is the URL I am trying to parse. https://ws.brreg.no/lod/data/982463718
A:
Have you looked at what you're receiving from that site? Instead of feeding the content directly to simpleXML, capturee it in a variable instead and output that. Perhaps you've been banned from that site for exessive usage, and you're getting a 401-denied error page instead of the XML you're expecting:
$content = file_get_contents('https://ws.brreg.no/lod/data/982463718');
echo '<pre>', htmlspecialchars($content), '</pre>';
Marc B
2010-10-27 19:05:12