on 01-14-2008 1:15 PM
Hi, I'm using SAX mapping, but in case that some field has "&" as content, for example company name,
public void characters(char buf[], int offset, int len)
throws SAXException {
String s = new String(buf, offset, len);
}
for string "name m&s" returns only "s". It loops(splits this string into 3) trough:
1. "name m"
2. "&"
3. "s"
and in this case, I get only "s" what is completely wrong. How to avoid that?
br
mario
Hi
Can you convert the character & to "& a m p ;" whithout white spaces?
"& a m p ;" is the correct value for some XML parsers, or try to use other character set.
Regards
Ivá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.