I have 2 files 1.xml and 2.xml both having similar structure and I would like to have one. I tried many solutions but I had errors only - frankly s
How about :
tags
preg_replace('//','',$xmlfilecontent);
// remove tags
$xmlfilecontent = str_replace('','',$xmlfilecontent );
// remove tags
$xmlfilecontent = str_replace('','',$xmlfilecontent );
// remove tags
$xmlfilecontent = str_replace(' ','',$xmlfilecontent );
// load XML Object - also add res and items + amount
$xmlobj = simple_xml_load_string(''.PHP_EOL.''.PHP_EOL.''.PHP_EOL.$xmlfilecontent.PHP_EOL.' '.PHP_EOL.' ');