I have a url and port... mysite.com:8000
When approached by HTTP this returns XML, of which I need to extract and transform <title>
under the tree <source mount="/live">
There are other nodes, but the hierachy looks like this
<icestats>
<source mount="/live">
<title>Michael Jackson - Beat IT - Thriller</title>
</source>
</icestats>
I need to extract the value of <title>
using Pascal, then explode it using the first hyphen.
So if the XML had value of "Michael Jackson - Beat IT - Thriller" I need to output...
Artist=Michael Jackson song=Beat IT - Thriller
These need to be extracted as variables to be included in a separate part of the script.
I apologize that I haven't got an attempt here already. I'm a station programmer learning to code. If someone could give me a head start I can probably flesh it out.
I am compiling this in PAL, which is based on Pascal/Delphi and is run in SAM Broadcaster.