XML: ampersand in values

peacemaker

Expert
Licensed User
Longtime User
HI, All

How to manage with the ampersand ("&") and other special symbols (where is the full list, BTW ?) that can be included into tag's values ?
 

peacemaker

Expert
Licensed User
Longtime User
I guess not HTML encoding. I mean that if in XML values found "&" - XMLSax parcer library gives error:
org.apache.harmony.xml.ExpatParser$ParseException: At line 181, column 27: not well-formed (invalid token)

UPD: THANKS ! I understand now.
 
Last edited:
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
For ref:
If "&" is replaced by "&" - it's recognized as "&" good by XMLsax lib.
But """ is not recognized and gives error.
 
Upvote 0
Top