Sedang Disiapkan

xml skip error

i have issue with code for xml

it's load link url ok and insert all category to db

after this scan the text on xml

some of category broken and have problem

i want the code skip if have error and continue to next

i put the line talk about and error show

$xml_str = file_get_contents($xmls);

$xml = new SimpleXMLElement($xml_str); - (THIS LINE show with error)



$arrayDef = array();

foreach ($xml->products->product as $item) {

$arrayTemp = array();

$arrayTemp['product_url'] = (string)$item->PRODUCT_URL;

$arrayTemp['product_name'] = (string)$item->product_name;

$arrayTemp['model'] = (string)$item->MODEL;

$arrayTemp['cat_number'] = (string)$item->CATALOG_NUMBER;

$arrayTemp['details'] = (string)$item->DETAILS;

$arrayTemp['currency'] = (string)$item->CURRENCY;

$arrayTemp['price'] = (string)$item->PRICE;

$arrayTemp['shipcost'] = (string)$item->SHIPMENT_COST;

$arrayTemp['delivery'] = (string)$item->DELIVERY_TIME;

$arrayTemp['manufacturer'] = (string)$item->MANUFACTURER;

$arrayTemp['image'] = (string)$item->IMAGE;

$arrayTemp['tax'] = (string)$item->TAX;

array_push($arrayDef, $arrayTemp);



// echo '<pre>' . print_r($arrayDef, true) . '</pre>';

//controll check





please only if u know xml very good!!!!

budget max 20$ for all skipe error on this

Kemahiran: PHP, XML

Lihat lagi: xml parsing error solution, fix xml parsing error, javascript parse xml report error, xml parse error repair, xml parsing error free repair, wordpress xml parsing error element found, wordpress sitemap xml parsing error element found, fix xml parsing error web server, xml feed error description, virtuemart xml parsing error, google xml wordpress xml parsing error element found, php 505 xml parse error, sitemap plugin xml parsing error element found, repair xml parsing error, xml parsing error element found sitemap

Tentang Majikan:
( 57 ulasan ) kfar vradim, Israel

ID Projek: #20009100

3 pekerja bebas membida secara purata $5/jam untuk pekerjaan ini


Hi. I have understood your problem. I am ready to solve your problems. Message me to discuss more and start working on the problem

$5 USD / jam
(3 Ulasan)

Hello! I have seen your project description. I will complete your project satisfactorily to your requirement. I can start work right away. I will be looking forward to hear from you. Thanks.

$4 USD / jam
(13 Ulasan)

Hi Dear I read your requirements carefully. I have rich experience with full-stack development. I have developed Website and Web application projects for 7+ years. My skill is like: program a browser:JavaScript,jQuery Lagi

$5 USD / jam
(2 Ulasan)