How would I parse a simple string that is not from xml?
For example, I have two arrays: arrayName and arrayProduct. I have a string (myString) that looks like this:
Crest;Toothpaste;;Polo;Shirts;;Webster;Dictionaries;;Starbucks;Coffee;;
What I want to do is have the company name be inserted into arrayName, and the product inserted into arrayProduct. I will eventually populate a uitableview with these, having the company prominent, and the product the cell's subtitle.
How would I go about parsing this?
For example, I have two arrays: arrayName and arrayProduct. I have a string (myString) that looks like this:
Crest;Toothpaste;;Polo;Shirts;;Webster;Dictionaries;;Starbucks;Coffee;;
What I want to do is have the company name be inserted into arrayName, and the product inserted into arrayProduct. I will eventually populate a uitableview with these, having the company prominent, and the product the cell's subtitle.
How would I go about parsing this?