Questions tagged as 'simplexml'

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

Simple XML Reader: I can not convert nodes to HTML or limit the number of items

I've used SimpleXMLReader to make parse of a gigantic XML structure, that has more than 25mb. My code works normally, however, I have two problems: I can not turn Xpath into HTML . Well, I studied it, and I saw that it's n...
asked by 05.06.2017 / 09:46
2
answers

Simple XML Reader does not work correctly

I have used SimpleXMLReader to attempt to extract data from the following XML structure: <boutique> <produto num="228122907"> <id_produto><![CDATA[70427038]]></id_produto> <...
asked by 28.05.2017 / 21:34
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
0
answers

How to parse XML with namespace and prefix in PHP using SimpleXML?

The data.xml file: <?xml version="1.0" encoding="utf-8" ?> <rsp status="ok"> <ArrayOfContact xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Contact> <...
asked by 07.07.2015 / 23:23
1
answer

How to get images in XML CDATA and DESCRIPTION

I have some xml files, and several of them news images are inside the description, in one of them the image is inside the CDATA, at the time I return the array a description does not appear any element according to the photo: p> Inanothercase...
asked by 30.07.2018 / 02:33
1
answer

SimpleXML does not return data from file [closed]

I'm using
asked by 06.01.2017 / 19:41
1
answer

Transform array into XML

I'm trying to transform an array into an XML My XML needs to have the following structure <Products> <Product name="TR-501"> <Descricao texto="55.180.198 / 46789771" /> <Detalhes> <Variacao modelo=...
asked by 17.04.2018 / 17:57
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