<?php

function generate_crossref_xml($submission)
{
return '
<doi_batch>
  <head>
    <doi_batch_id>'.$submission['id'].'</doi_batch_id>
  </head>
  <body>
    <journal>
      <journal_article>
        <titles>
          <title>'.$submission['title'].'</title>
        </titles>
        <doi_data>
          <doi>'.$submission['doi'].'</doi>
          <resource>https://yourjournal.org/article/'.$submission['id'].'</resource>
        </doi_data>
      </journal_article>
    </journal>
  </body>
</doi_batch>
';
}
