Which is a better XML attribute: base=64 or encoding=base64 -


i designing xml , wish allow binary data encoded either base16 or base64. default base16.

for specifying base64, wish have attribute. 2 options are:

<foo encoding='base64'>tqpuiunh0mewcskysinktqffuny=</foo> 

and:

<foo base='64'>tqpuiunh0mewcskysinktqffuny=</foo> 

i think first more descriptive suspect second might better. i'm looking people's reactions.

thanks.

seeing base64 encoding, more semantic markup encoding="base64".

people seeing base may think decimal base or binary, example, don't believe want reader think.


Comments