I know this one has been asked before, however I can't seem to find a suitable solution, so I 'll state the problem:
I have a string of characters that is similar to an XML file. It's not an XML string, but it has opening and closing tags. All the information resides in one single line, for example:
<user>username</username>random data;some more random data<another tag>data</anothertag>randomdata;<mydata>myinfo</mydata>some more random data....
etc...
I am trying to read ONLY what's in between <mydata></mydata>
. Any way to just parse this?
thanks, code is appreciated.