You are going to use parseFloat as soon as you figure out how to extract numbers from your text ... How you extract these numbers depends entirely on what the text is. Most likely, you will divide all the text into \ s, and then delete all characters that are not numbers and dots. This should leave you with floats ... although again it is impossible to say without seeing what the surrounding text looks like.
EDIT: Okay, now that you have changed your question, the answer is that you just take the attributes named value and value1 and run parse float over what's in them. If your text area contains this XML, you need to parse the XML first to get attributes as objects.
source share