解析XML特殊字符? [英] Parse XML special characters?
本文介绍了解析XML特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在过去的2天,我正在寻找该如何解析XML的特殊字符如@#$%^&放大器;!*()':;,但我没有得到任何东西足够了如何实现它..任何人都可以请建议我我something..how可以做到这一点?
From the last 2 days I am searching that how to parse XML with special chars like !@#$%^&*()':;", but I am not getting anything sufficient that how to implement it.. Can anyone pls suggest me something..how can I do this??
推荐答案
您可以尝试这样的这个,即给予该特殊字符的参考。
You can try something like this, that is giving the reference for that special character.
Character Reference
& - &
< - <
> - >
" - "
' - '
更新:
我已经回答了你的问题在这里,所以来看看的<一个href="http://stackoverflow.com/questions/8134317/sax-parsing-of-character/8137682#8137682">Answer.
I had already answered in your question here so have a look at the Answer.
这篇关于解析XML特殊字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文