Read remote xml file

1

How can I read an xml file that is generated online, is a file generated by my provider, link . It is generated only through my website but how can I read it and write to a database?

    
asked by anonymous 11.08.2015 / 17:44

2 answers

1

Clayton,

PHP contains a way to read XML files natively, without another library. There is documentation here , in Portuguese, of class XMLReader . It does not matter if the XML file comes from a website or if it comes from a physical file.

    
11.08.2015 / 18:48
1

Clayton, with the url which generates xml, what you have to do is to use a library that rest requests to download the xml for your application and after that you process the XML.

    
11.08.2015 / 18:31