In my iPhone app I have to display UITextField in-between in a large paragraph. Here I am getting this paragraph string is from a XML. Here how to insert UITextField in this paragraph in a particular position?
Here this XML in also contain some special characters to find the place where to insert the UITextField? So also how to parse the XML which as special characters in between and insert UITextField?
Why don’t you encode the XML before saving it or at least the data you are appending and decode it back on parsing.
URL Encoding Reference
On receiving the XML use:
CFURLCreateStringByReplacingPercentEscapes
This will output: UserName&LastName
Example
after Encoding it: