XML / JSON will not qualify for the alphanumeric mode of the QR code, as it will contain lowercase letters. You will have to use byte mode. The maximum value is 2,953 characters. But the practical limit is much less - perhaps a few hundred characters.
It is best to encode a data hyperlink if you can.
As Terence says, no reader can do anything with XML / JSON except to show it. In any case, you need a custom reader to do something useful with this data. (This suggests that it is not very useful for QR codes.) But if you create your own reader, you can use gzip compression to make the payload much less. Your reader will know how to unzip it.
You can leave with something workable, but overall this is not a very good approach.
Sean owen
source share