I gang

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)

if($xml)

{

$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);

$this->model_bsell_xmlcompare->addProductxml($arrayTemp,$store_id);

}

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

//controll check

$this->model_bsell_xmlcompare->getcategoryupdate($xmls);

$x++;

}

}

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

budget max 20$ for all skipe error on this

Evner: PHP, XML

Se mere: 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

Om arbejdsgiveren:
( 57 bedømmelser ) kfar vradim, Israel

Projekt ID: #20009100

3 freelancere byder i gennemsnit $5/time for dette job

ranahashim

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 / time
(3 bedømmelser)
3.5
haiyang19890101

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 / time
(13 bedømmelser)
3.3
albertpopov46

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 Flere

$5 USD / time
(2 bedømmelser)
2.2