# Packaging of XML and 1 or more PDF in one file

**URL:** <https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384>\
**Category:** Questions\
**Tags:** data-transfer\
**Created:** [October 12, 2020, 7:59pm UTC](https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384 "2020-10-12T19:59:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torsten](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/torsten/32/1574_2.png) [@Torsten](https://the.fmsoup.org/u/Torsten)\
**Post date:** [October 12, 2020, 7:59pm UTC](https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384/1 "2020-10-12T19:59:59Z")

</div>

For transfer between custom solutions, the found sets in several related tables are packaged in XML.  
Then, 1 or more PDF need to be added. I am adding them encoded and wrapped in [CDATA tags.  
It works well and importing runs smoothly.

However, there may be a better solution to this. How would you package the XML and PDFs for transfer?

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [October 12, 2020, 8:15pm UTC](https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384/2 "2020-10-12T20:15:43Z")

</div>

how about a zip file?

Or with DynaPDF put them as embedded files in the PDF.

---

<div class="post-metadata">

**Author:** ![EfficientBizz](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/efficientbizz/32/252_2.png) [@EfficientBizz](https://the.fmsoup.org/u/EfficientBizz)\
**Post date:** [October 12, 2020, 8:29pm UTC](https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384/3 "2020-10-12T20:29:03Z")

</div>

Having the PDF embedded Base64 encoded inside the XML-string is the method of choice for electronic invoicing with Swiss Health System where the medical prescription needs to be part of the invoice.

---

<div class="post-metadata">

**Author:** ![harvest](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/harvest/32/231_2.png) [@harvest](https://the.fmsoup.org/u/harvest)\
**Post date:** [October 13, 2020, 7:18am UTC](https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384/4 "2020-10-13T07:18:25Z")

</div>

> [@MonkeybreadSoftware](#):
>
> how about a zip file?

+1  
tend to do it this way too

---

<div class="post-metadata">

**Author:** ![Torsten](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/torsten/32/1574_2.png) [@Torsten](https://the.fmsoup.org/u/Torsten)\
**Post date:** [October 13, 2020, 9:07am UTC](https://the.fmsoup.org/t/packaging-of-xml-and-1-or-more-pdf-in-one-file/1384/5 "2020-10-13T09:07:33Z")

</div>

Thank you @MonkeybreadSoftware, @EfficientBizz and @harvest for feedback.
