Questions tagged as 'simplexml-load-string'

2
answers

How to check for errors in an XML

I'm using the simplexml_load_string function to load a dynamic XML, but if there are formatting errors in this XML it only returns me false and I do not know where the error is, can I check this?     
asked by 02.01.2014 / 14:21
2
answers

Convert XML into php [closed]

I am making a request in php via curl, and the answer is returning an xml, however I can not work with this xml .. REQUIREMENT: <br> curl = curl_init('http://ws.targetmailing.com.br/consulta');<br> curl_setopt($curl, CURLOPT_HEA...
asked by 07.07.2016 / 19:57
1
answer

Redeem object value

I own an object like this: SimpleXMLElement Object ( [0] => 1bf7080ac1c04e4e9de924c0a7d9444d ) But I can not redeem just the value of it. I've tried the following ways: print_r($obj{0}); print_r($obj{'0'}); print_r($obj->{0}); p...
asked by 04.10.2018 / 22:06
0
answers

simplexml_load_file does not work with large XML file - Request Time Out

I'm using simplexml_load_file to parse an XML document, but the file has more than 100 mb and instead of loading only part of the nodes, what's happening is that the whole document is being loaded from a before the nodes are extracted, an...
asked by 17.06.2017 / 00:13
0
answers

Doubt with XML Parser

I have a project that uses Jsoup to perform the parser of an xml and I am changing the implementation to Retrofit and SimpleXML, however the xml structure varies in the Content block, where I can only come a String with the content or I came a p...
asked by 10.10.2016 / 19:16
1
answer

XML Parser in PHP does not work

I am trying to implement an XML parse code in PHP, I believe I configured it following the right logic, but it is not working. It works if I use it with an RSS feed, however the RSS Feed does not have the links of the images. The final goal is t...
asked by 27.05.2017 / 06:23