The Target CUE Print Structure

In order to be able to import the storyline into CUE Print, the storyline JSON data needs to be transformed into an XML document that looks like this:

<cci:ccitext xmlns:cci="urn:schemas-ccieurope.com" xmlns:ccix="http://www.ccieurope.com/xmlns/ccimlextensions">
  <cci:head>
    <cci:p>My Bullet Test</cci:p>
  </cci:head>
  <cci:head_deck/>
  <cci:body>
    <cci:p>Here is an introductory <cci:bold>paragraph</cci:bold>, followed by a list:</cci:p>
    <cci:bullet_list>
      <cci:p>Item one</cci:p>
      <cci:p>Item two</cci:p>
      <cci:bullet_list>
        <cci:p>Nested one</cci:p>
        <cci:p>Nested two</cci:p>
      </cci:bullet_list>
      <cci:p>Item three</cci:p>
    </cci:bullet_list>
    <cci:p>Concluding paragraph.</cci:p>
  </cci:body>
  <cci:byline>
    <cci:p/>
  </cci:byline>
  <cci:quote>
    <cci:p/>
  </cci:quote>
</cci:ccitext>