Hi,
I’m working on a specific Polish report for our organisation. I’ve mocked up some data in the attached file for sharing.
The input XML file is in the basis quite correct, but we’ll need to change certain values. That’s the easy part. I haven’t included that in the workflow for that reason.
My main problem is that I need to export the data again into an XML format. Especially creating the parent child structure I’m struggling with. For example
<tns:FakturaWiersz>
<tns:P_2B>2503600000311</tns:P_2B>
<tns:P_7>RENT</tns:P_7>
<tns:P_8A>EA</tns:P_8A>
<tns:P_8B>1</tns:P_8B>
<tns:P_9A>699.43</tns:P_9A>
<tns:P_11>699.43</tns:P_11>
<tns:P_12>23</tns:P_12>
</tns:FakturaWiersz>
I need to create this FakturaWiersz parent tag for the actual data tags. How do I do that?
Also - as you can see in the input file - there’s also header data, which should only be present once, while the invoice data can and should occur multiple times.
Please note that now there’s only 2 invoices and 2 invoice lines included in the data, but it could be thousands.
How do I create this parent child structure. I’m using JSON as I understand that in the end it’s easier to create this parent/child structure. I tried with also with converting to XML straight away, but got stuck as well…
XML to JSON to XML JPK FA.knwf (124.0 KB)








