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??
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
There is a free command line tool for transforming files with special characters in text to valid XML. It also assures that the file encoding matches what is specified in the declaration.
There is also a Java developer suite that allows you to use the parser to parse such files (called XPL) as an alternative to XML or a pre-process into XML. It uses a StAX-like process called StAX-PL.
The normalize method can handle special characters and entities for you.
You can try something like this, that is giving the reference for that special character.
UPDATE:
I had already answered in your question here so have a look at the Answer.
xml parsing with "&", "®", but still getting errors
These links might also help:
Parsing invalid ampersands with Android's XmlPullParsers
http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html