How to display the result of reading an XML file correctly

1

Good morning,

I came up with the need to read an XML file made available in a URL, however, even following the questions already opened here in the stack as: Query the XML URL the data is returned to me with no information and I have a guarantee that there is content in that URL.

When I use this reading system:

      <?php
        $xml =simplexml_load_file('https://www.meusite.com.br/X/teste.xml');
      echo "<pre>"; 
      print_r($xml);
      echo "</pre>";   
      ?> 

The structure is returned without any data:

What error am I making while viewing this file?

    
asked by anonymous 24.10.2018 / 15:14

0 answers