Possibly a quite simple question. I have a Element from a XML request and I have done:
Element number;
number = serviceDetail.getChild("Number");
I now want to convert the Element number into a String and then be able to use the substring function on it. What is the most effective way to transform a element into a string? toString() failed and the string prints like @a06816
and trying to transform it seemed to throw alot of errors.
Any help will be appreciated
Edit: Sorry I wasn't 100% clear. The contents of the number element will be the value that is inside the 'Number' element in the XML request which will be a string.
SOLVED: Instead of the above code I used:
String number;
number = serviceDetail.getChildText("Number");
Oops sorry for the hassle guys!