I am using SAX parser to parse a XML response but it throws an exception.
ExpatParser$ParseException : (not well formed) invalid token
Is there any
I'm not entirely sure that it will solve your problem but I'd set the charset on the InputSource using its setEncoding() method.
InputSource
setEncoding()
InputSource inputSource = new InputSource(byteArrayInputStream); inputSource.setEncoding("UTF-8"); xr.parse(inputSource);