在XML存储的base64数据? [英] Storing base64 data in XML?

查看:552
本文介绍了在XML存储的base64数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能存储的base64字符串的XML?

How I can store base64 strings in XML?

你用CDATA为base64字符串存储在XML?它是否有助于它允许使用< >在字符串中的?

Do you use CDATA to store base64 strings in XML? Would it help as it allows use of < > within the strings?

时的base64配置的,你告诉它不要,如果他们使用XML冲突?使用某些字符

Is base64 configurable where you tell it not to use certain chars if they conflict with XML?

推荐答案

您可以只将其存储为文本或属性值;无法回避需要或 CDATA 部分。标准的基础64个字符 + / (除了 AZ AZ 0-9 )不使用XML解析所有干扰。

You can just store it as a text or attribute value; no escaping or CDATA sections needed. The standard base 64 characters + and / (other than a-z, A-Z and 0-9) do not interfere with XML parsing at all.

这篇关于在XML存储的base64数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆