Hi, I'm using this command to convert a string parsed with xerces into an Integer.
public void fun(String chars) {
int t = Integer.parseInt(chars.trim())
but I get an NumberFormatException
The Number looks ok to me when I print it on the screen.
I use :
public CharArrayWriter contents = new CharArrayWriter();
public void characters( char[] ch, int start, int length ) throws SAXException {
contents.write( ch, start, length );
fun (ch);
can anyone help me ?
cheers.