I'd recommend stuffing the HTML you parsed out of the XML into a "NSMutableString
" object and then hunt through the mutable string object looking for the ranges of all substrings that match the pattern "font size=
".
Once you find those ranges, you should be able to get the font sizes and then put them into a "NSInteger
" via something like [NSString integerValue]
which you can then increment and put back into the mutable string object. Obviously there's some extra detail I'm not thinking too hard about, like how to replace a "9
" in the mutable string with a "10
" or to tell the difference between a font size of "10
" and one that's "100
". But at least this should be a good start for you.