$Orgfield->appendChild($OrgfieldName); $OrgfieldID = $xml->createElement("OrgfieldID"); $OrgfieldIDText = $xml->createTextNode($fld[4]); $OrgfieldID->appendChild($OrgfieldIDText); $Orgfield->appendChild($OrgfieldID); $Orgfields->appendChild($Orgfield); } } $del = $xml->createElement("delimiter"); $delText = $xml->createTextNode($delimArr[$i]); $del->appendChild($delText); $Orgfields->appendChild($del); // } $fields->appendChild($field); $strTarField = implode($delimArr[$i], $fldnamearr); $strTarFldId = implode(",", $fldidarr); } //$root->appendChild($name); $root->appendChild($target); $root->appendChild($origin); $root->appendChild($fields); $xml->formatOutput = true; echo $xml->saveXML(); include_once 'modules/cbMap/cbMap.php'; $map_focus = new cbMap(); $map_focus->id = $mapid; $map_focus->retrieve_entity_info($mapid, "cbMap"); $map_focus->column_fields['content'] = $xml->saveXML(); $map_focus->mode = "edit"; $map_focus->save("cbMap");
} else { $update_value = $update_data[$i]->expectedvalue; } $update_text_expectedvalue = $xml->createTextNode($update_value); $update_expectedvalue_node->appendChild($update_text_expectedvalue); } include_once 'modules/cbMap/cbMap.php'; echo 'teszt'; $map_focus = new cbMap(); $xml->formatOutput = true; echo $xml->saveXML(); $map_focus->id = $mapid; $map_focus->retrieve_entity_info($mapid, 'cbMap'); $map_focus->column_fields['content'] = $xml->saveXML(); $map_focus->mode = "edit"; $map_focus->save('cbMap'); /* //Default parameters $defaultDelimiter = $_POST['delimiterVal']; $rec = $_POST['accid']; if(isset($_POST['orgmodH'])) $orgmod = explode("$$",$_POST['orgmodH']); else $orgmod = explode("$$",$_POST['orgmod']); $orgmodID = $orgmod[0]; //$name = $xml->createElement("name"); $target = $xml->createElement("originmodule"); $targetid = $xml->createElement("originid"); $targetidText = $xml->createTextNode($targetmodID); $targetid->appendChild($targetidText);