This multidimensional array with attributes:
Array
(
[EPaperPage] => Array
(
[@attributes] => Array
(
[ePdfPageSize] => 1
[eJpegPageSize] => 0
)
[EDayOfPub] => Array
(
[@attributes] => Array
(
[dtmCreatedDate] => 2016-02-02T14:40:01
[dtmLastUpdate] => 2016-02-02T14:40:01
[strCreatorLoginName] => sdsdt
[strLastUpdaterLoginName] => sdsdst
[nContentVersion] => 3
)
[OrigId] => Array
(
[@attributes] => Array
(
[kLocationId] => 960
[strPubCustId] => OND
[eLogType] => 20
[strDocId] => fd34c3c5-053b-45e7-bd92-66f04db013aa
[nVersion] => 0
)
)
[...]
must be save in file like this:
<?xml version="1.0" encoding="UTF-8"?>
<DialogEPaperPage>
<EPaperPage ePdfPageSize="1" eJpegPageSize="0">
<EDayOfPub dtmCreatedDate="2016-02-02T14:40:01" dtmLastUpdate="2016-02-02T14:40:01" strCreatorLoginName="sdfsdf" [...]