XMLLite属性字符转义 [英] XMLLite Attribute Character Escaping
问题描述
我目前在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 < 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屋!