Code Context                foreach ($docsource["36_Relationen"] as $relation) {
                    $xml_relation = $xml->createElement( "relation" );
                    $xml_relation->setAttribute( "name" , $relation["relation_art"] );
$id = '12392'
$currentDoc = array(
	'_index' => 'awschlegel0719_letter',
	'_type' => '_doc',
	'_id' => '12392',
	'_version' => (int) 1,
	'_seq_no' => (int) 5447,
	'_primary_term' => (int) 3,
	'found' => true,
	'_source' => array(
		'ID' => '12392',
		'project' => '1',
		'timecreate' => '2018-12-11 10:31:36',
		'timelastchg' => '2019-03-15 10:06:29',
		'key' => 'AWS-aw-05t4',
		'docTyp' => array(
			'name' => 'Brief',
			'id' => '36'
		),
		'36_xml_standoff' => '',
		'36_adressat' => array(
			(int) 0 => array(
				[maximum depth reached]
			)
		),
		'36_absender' => array(
			(int) 0 => array(
				[maximum depth reached]
			)
		),
		'36_absenderort' => array(
			(int) 0 => array(
				[maximum depth reached]
			)
		),
		'36_datumvon' => '1837-09-01',
		'36_status' => 'Transkription noch nicht zugänglich',
		'36_datengeberhand' => 'Sächsische Landesbibliothek - Staats- und Universitätsbibliothek Dresden',
		'36_purlhand' => '478137443',
		'36_signaturhand' => 'Mscr.Dresd.e.90,LIX,B,Nr.8b',
		'36_h1zahl' => '2 1/4 S.',
		'36_sprache' => array(
			(int) 0 => 'Französisch'
		),
		'36_Link_Hand' => array(
			(int) 0 => array(
				[maximum depth reached]
			),
			(int) 1 => array(
				[maximum depth reached]
			),
			(int) 2 => array(
				[maximum depth reached]
			),
			(int) 3 => array(
				[maximum depth reached]
			)
		),
		'36_Relationen' => array(
			(int) 0 => array(
				[maximum depth reached]
			)
		),
		'36_Datum' => '1837-09-01',
		'36_facet_absender' => array(
			(int) 0 => 'Antoine Jean Letronne'
		),
		'36_facet_absender_reverse' => array(
			(int) 0 => 'Letronne, Antoine Jean'
		),
		'36_facet_adressat' => array(
			(int) 0 => 'August Wilhelm von Schlegel'
		),
		'36_facet_adressat_reverse' => array(
			(int) 0 => 'Schlegel, August Wilhelm von'
		),
		'36_facet_absenderort' => array(
			(int) 0 => 'Paris'
		),
		'36_facet_adressatort' => '',
		'36_facet_status' => 'Transkription noch nicht zugänglich',
		'36_facet_datengeberhand' => 'Sächsische Landesbibliothek - Staats- und Universitätsbibliothek Dresden',
		'36_facet_sprache' => array(
			(int) 0 => 'Französisch'
		),
		'36_facet_korrespondenten' => array(
			(int) 0 => 'Antoine Jean Letronne'
		),
		'_label' => '',
		'_descr' => '',
		'_model' => 'Letter',
		'_model_title' => 'Letter',
		'_model_titles' => 'Letters',
		'_url' => ''
	)
)
$docsource = array(
	'ID' => '12392',
	'project' => '1',
	'timecreate' => '2018-12-11 10:31:36',
	'timelastchg' => '2019-03-15 10:06:29',
	'key' => 'AWS-aw-05t4',
	'docTyp' => array(
		'name' => 'Brief',
		'id' => '36'
	),
	'36_xml_standoff' => '',
	'36_adressat' => array(
		(int) 0 => array(
			'ID' => '7125',
			'content' => 'August Wilhelm von Schlegel',
			'bemerkung' => '',
			'altBegriff' => 'Schlegel, August Wilhelm von',
			'LmAdd' => array(
				[maximum depth reached]
			)
		)
	),
	'36_absender' => array(
		(int) 0 => array(
			'ID' => '7307',
			'content' => 'Antoine Jean Letronne',
			'bemerkung' => '',
			'altBegriff' => 'Letronne, Antoine Jean',
			'LmAdd' => array(
				[maximum depth reached]
			)
		)
	),
	'36_absenderort' => array(
		(int) 0 => array(
			'ID' => '171',
			'content' => 'Paris',
			'bemerkung' => 'GND:4044660-8',
			'altBegriff' => '',
			'LmAdd' => array([maximum depth reached])
		)
	),
	'36_datumvon' => '1837-09-01',
	'36_status' => 'Transkription noch nicht zugänglich',
	'36_datengeberhand' => 'Sächsische Landesbibliothek - Staats- und Universitätsbibliothek Dresden',
	'36_purlhand' => '478137443',
	'36_signaturhand' => 'Mscr.Dresd.e.90,LIX,B,Nr.8b',
	'36_h1zahl' => '2 1/4 S.',
	'36_sprache' => array(
		(int) 0 => 'Französisch'
	),
	'36_Link_Hand' => array(
		(int) 0 => array(
			'url_image_hand' => 'https://digital.slub-dresden.de/data/kitodo/SchlNach_478137443_590/SchlNach_478137443_590_tif/jpegs/00000273.tif.original.jpg',
			'subID' => '144'
		),
		(int) 1 => array(
			'url_image_hand' => 'https://digital.slub-dresden.de/data/kitodo/SchlNach_478137443_590/SchlNach_478137443_590_tif/jpegs/00000274.tif.original.jpg',
			'subID' => '144'
		),
		(int) 2 => array(
			'url_image_hand' => 'https://digital.slub-dresden.de/data/kitodo/SchlNach_478137443_590/SchlNach_478137443_590_tif/jpegs/00000275.tif.original.jpg',
			'subID' => '144'
		),
		(int) 3 => array(
			'url_image_hand' => 'https://digital.slub-dresden.de/data/kitodo/SchlNach_478137443_590/SchlNach_478137443_590_tif/jpegs/00000276.tif.original.jpg',
			'subID' => '144'
		)
	),
	'36_Relationen' => array(
		(int) 0 => array(
			'relation_link' => '1290',
			'subID' => '270'
		)
	),
	'36_Datum' => '1837-09-01',
	'36_facet_absender' => array(
		(int) 0 => 'Antoine Jean Letronne'
	),
	'36_facet_absender_reverse' => array(
		(int) 0 => 'Letronne, Antoine Jean'
	),
	'36_facet_adressat' => array(
		(int) 0 => 'August Wilhelm von Schlegel'
	),
	'36_facet_adressat_reverse' => array(
		(int) 0 => 'Schlegel, August Wilhelm von'
	),
	'36_facet_absenderort' => array(
		(int) 0 => 'Paris'
	),
	'36_facet_adressatort' => '',
	'36_facet_status' => 'Transkription noch nicht zugänglich',
	'36_facet_datengeberhand' => 'Sächsische Landesbibliothek - Staats- und Universitätsbibliothek Dresden',
	'36_facet_sprache' => array(
		(int) 0 => 'Französisch'
	),
	'36_facet_korrespondenten' => array(
		(int) 0 => 'Antoine Jean Letronne'
	),
	'_label' => '',
	'_descr' => '',
	'_model' => 'Letter',
	'_model_title' => 'Letter',
	'_model_titles' => 'Letters',
	'_url' => ''
)
$xml = object(DOMDocument) {
	
}
$xml_tei = object(DOMElement) {
	
}
$xml_teiheader = object(DOMElement) {
	
}
$xml_filedesc = object(DOMElement) {
	
}
$xml_titlestmt = object(DOMElement) {
	
}
$absender = 'Antoine Jean Letronne'
$adressat = 'August Wilhelm von Schlegel'
$abs = array(
	'ID' => '7125',
	'content' => 'August Wilhelm von Schlegel',
	'bemerkung' => '',
	'altBegriff' => 'Schlegel, August Wilhelm von',
	'LmAdd' => array(
		'personid17' => '8037'
	)
)
$key = (int) 0
$xml_title = object(DOMElement) {
	
}
$xml_editor = object(DOMElement) {
	
}
$xml_persname = object(DOMElement) {
	
}
$xml_persnamef = object(DOMElement) {
	
}
$xml_persnames = object(DOMElement) {
	
}
$xml_affiliation = object(DOMElement) {
	
}
$xml_respstmt = object(DOMElement) {
	
}
$xml_orgname = object(DOMElement) {
	
}
$xml_resp = object(DOMElement) {
	
}
$xml_editionstmt = object(DOMElement) {
	
}
$xml_edition = object(DOMElement) {
	
}
$editors = array()
$xml_publicationstmt = object(DOMElement) {
	
}
$xml_publisher = object(DOMElement) {
	
}
$xml_availability = object(DOMElement) {
	
}
$xml_licence = object(DOMElement) {
	
}
$xml_ab = object(DOMElement) {
	
}
$xml_datestate = object(DOMElement) {
	
}
$datestate = object(DateTime) {
	
}
$xml_idnostate = object(DOMElement) {
	
}
$xml_sourcedesc = object(DOMElement) {
	
}
$xml_idno = object(DOMElement) {
	
}
$xml_msdesc = object(DOMElement) {
	
}
$xml_msidentifier = object(DOMElement) {
	
}
$xml_institution = object(DOMElement) {
	
}
$xml_repository = object(DOMElement) {
	
}
$xml_physdesc = object(DOMElement) {
	
}
$xml_objectdesc = object(DOMElement) {
	
}
$xml_listrelation = object(DOMElement) {
	
}
$relation = array(
	'relation_link' => '1290',
	'subID' => '270'
)
$xml_relation = object(DOMElement) {
	
}LettersController::xml() - APP/Controller/LettersController.php, line 998
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 109