I am having xml file with its arttibut value is like New
Is this valid to have xml arttibute value like clean="AT&T".Please suggest some solution. Thanks in advance
You need to encode special characters like this: clean="AT&T"
.
As you can see, the &
can be represented by &
.
This is because HTTP does not guarantee data being encoded into a utf format and therefore it is not guaranteed that these can be displayed at the client side.
Here is a table of available special characters and their respective encoded names: http://www.degraeve.com/reference/specialcharacters.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.