@theProfit I honestly cant really remember how to work with xml in php. I havent done so in years. But I can highly recommend using a package that makes parsing it a bit easier. The simplexml_load_string() class is a bit tricky to work with
@theProfit I would probably go with the package that @mohamedtammam suggested. It is made by Crynobone who is an awesome developer (He made testbench for laravel)
i have this code but i think my storage path is not correct do you know something to get the right location now i must first store the request i am getting store it then read it again.
[2023-02-21 11:36:52] local.ERROR: Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, Orchestra\Parser\Xml\Document given
@Sinnbeck Yes only when i now do a die dump i get this --> https://prnt.sc/s60f54otKr3y
it is also showing only first 2 lines and the other solution is also not showing all the lines in the xml so i need a solution to read the xml.
It looks like you are only getting the first line of the XML file because you are not looping through the XML file. You can use a foreach loop to loop through the XML file and get all the data.