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?
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?
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.
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.