XMLLite属性字符转义 [英] XMLLite Attribute Character Escaping

查看:69
本文介绍了XMLLite属性字符转义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在XMLLite中有两个问题,都涉及转义和属性中的字符。


第一个是添加HTML标记作为属性(不理想,但是在这个阶段并没有真正改变)< 被转义为& lt;然而,>完全被忽略了。有没有办法强制thsi被转义?


第二个问题与属性中的回车有关,这些问题目前正作为& xD进行转义;有没有办法防止它们被转义?


这两个问题的解决方案可能就是编写原始字符,但我似乎无法找到任何编写原始字符的方法一个属性,这可能吗?


 

解决方案

你能提供给我们你的xml吗?

I have 2 problems currently in XMLLite, both concerning the escaping of characters in and Attribute.

The first is when adding HTML markup as an attribute (not ideal, but not really changeable at this stage) the < are escaped as &lt; however the > are completey ignored. Is there a way to force thsi to be escaped as well?

The second problem has to do with Carriage Returns in an Attribute, these are currently being escaped as &xD; Is there a way to prevent them from being escaped at all?

Possibly a solution to both issues is to write raw chars, however I can't seem to find any way of writing raw character to an attribute, is this possible?

 

解决方案

can you provide us with your xml?


这篇关于XMLLite属性字符转义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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