I have a file which i'm parsing out myself. Every time i spot a "<" or ">" i split the string like so:
xml = file.split("[<>]");
This will give me the tag, the data and the closing tag.
once this is done i determine what type of tag it is and handle it differently. In the case that it is an item tag, it has a description. like so:
<description>
<![CDATA[
<img width="460" height="259" src="http://www.cbc.ca/gfx/images/news/topstories/2012/03/28/hi-parliament-stop-852-7931-6col.jpg"><br/><p>Finance Minister Jim Flaherty's budget will take the shine off what critics call MPs' gold-plated pensions, reports Greg Weston for CBC News.</p>
]]>
</description>
the problem here is that it will split on all the "<" and ">" so the description part that i'm looking for gets lost.
how can i get around the description and possibly other tags i'm searching for containing multiple "<" and ">" which i don't care about? (ones which are not surrounding the opening tag and closing tag?