Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Embedding XML string in QR Barcode

Question
11
Views
0
Comments

Summary

Embedding XML string in QR Barcode

Content

What my business needs is to embed an XML formatted string in a QR barcode such as:

<barcode>

    <docType>Vouch</docType>

       <businessUnit>BU</businessUnit>

       <voucherNumber>12345</voucherNumber>  

       <docDate>1-1-17</docDate> 

       <invoiceNumber>12345</invoiceNumber>

       <shortVendorName>Sample Name</shortVendorName>

       <longVendorName>Sample Name Long</longVendorName>

       <scanSheetId>Acct Vouch</scanSheetId>

       <patchCode>3</patchCode>

</barcode>

When I use a command such as <?format-barcode:barcode;'qrcode';'MyBarcodeEncoder'?> the decoded data comes out on one line randomly breaking such as this

VoucheBU123451-1-17

12345Sample NameSample NameLong

Acct Vouch3

I have tried concatenating the XML tags with the element value and saving it as a variable then passing that variable as the data to be formatted. This produces a garbled barcode. Any ideas on how to encode the full XML string?

Thanks,

Zach Brenneman