Parse web xml data and create multi-page output with QR codes

This was an adventure in downloading html, xml, json or whatever as text from the internet, parsing them to strip out desired text and numbers, then printing out on as many pages as needed, but also printing the QR codes of these data for quick use with a scnner to enter in another program or computer.

A typical xml file looks like this..

The start and finish of the desired data are at the marked phrases.

I use an online Google service to turn the data into QR codes. These are sent to a graphic page which when full prints and starts another page. I used a routine to right align currency numbers, and show with + or - signs and a comma as decimal separator. I also add a footer.

21 Eenh. 2315 Eenh. Snijmais "LG30.211" "Ontsmet"            +841,43
325 Kg 3427 Physiostart P-plus NP6+27+4SO3+2Zn                  0,00
1 Stuks 9005 Pallets inclusief                                +19,88
40 Kg 1130 Kaliber opfok (kalveropfokkorrel) *                +27,48
40 Kg 1758 Kaliber Start (muesli) *                          +718,99
1.575 Kg 3421 Maismest 24+0 HUMICoat                          +90,80
2 Stuks 9060 Kisten                                           +19,88
40 Kg 1130 Kaliber opfok (kalveropfokkorrel) *                +27,48
40 Kg 1758 Kaliber Start (muesli) *                           +19,88
40 Kg 1130 Kaliber opfok (kalveropfokkorrel) *                +27,48
40 Kg 1758 Kaliber Start (muesli) *                           -39,27

The resulting pages of data are sent to the default printer. I have this set to 'print to pdf' to avoid wasting paper!

And here is a typical page..


To try it, download and extract bas file and target xml from my site.