I found some posts related to this issue but not able to find the solution. Problem is that on character() function, ch[] array contains incomplete or last elements from last call and this happens sometimes but 98% of times works properly. File name has no special chars and no strange names.
if we have,
<tag>image1test.jpg<tag>
<tag>image2bla.jpg<tag>
when working, char array contains proper values but when not, when characters function is called for second tag from example, we get,
[i,m,a,g,e,2,b,e,s,t]
(residual chars from last call)
how to solve it? thanks.
@Override
public void characters(char ch[], int start, int length) {
if(this.v_new){
myNewsXMLDataSet.setNews(new String(ch, start, length));
}