That is why I asked for a protocol :) Why we have to go the extra mile of parsing the XML, that will contain plenty of info we don't need !! Anyway, thank you for the tips. On Thu, 17 Feb 2005 10:39:26 +1100, Michael Smith <mlrsmith@gmail.com> wrote:> On Wed, 16 Feb 2005 16:23:03 +0200, Mohamed Eldesoky > <eldesoky.lists@gmail.com> wrote: > > I don't mind using the password. > > Just I am asking if there is some sort of protocol to retrieve the > > information without playing with the xsl !! > > I mean, to directly retrieve the wanted information, like > > > > ME: Get MetaData > > Server: Celin Dion - All comes back to me. > > Ah. For most (possibly all?) of the admin requests, there's an > alternative form that will just serve you the raw XML (which is what > the XSL transforms). Just use the same URL, but without the ".xsl" on > it. > > You'll still need to parse the XML, but that's easy. > > Mike >-- Mohamed Eldesoky www.eldesoky.net RHCE
ummm Tried it now without the xsl It doesn't give the XML, just raw data !! Like that example below 191802042Icecast 2.2.01240124100bitrate=24240http://radio.mysite.com:8000/shabab1MeLoDyZ.CoM - B.S.B - More Than That All on one line On Thu, 17 Feb 2005 10:11:28 +0200, Mohamed Eldesoky <eldesoky.lists@gmail.com> wrote:> That is why I asked for a protocol :) > Why we have to go the extra mile of parsing the XML, that will contain > plenty of info we don't need !! > > Anyway, thank you for the tips. > > > On Thu, 17 Feb 2005 10:39:26 +1100, Michael Smith <mlrsmith@gmail.com> wrote: > > On Wed, 16 Feb 2005 16:23:03 +0200, Mohamed Eldesoky > > <eldesoky.lists@gmail.com> wrote: > > > I don't mind using the password. > > > Just I am asking if there is some sort of protocol to retrieve the > > > information without playing with the xsl !! > > > I mean, to directly retrieve the wanted information, like > > > > > > ME: Get MetaData > > > Server: Celin Dion - All comes back to me. > > > > Ah. For most (possibly all?) of the admin requests, there's an > > alternative form that will just serve you the raw XML (which is what > > the XSL transforms). Just use the same URL, but without the ".xsl" on > > it. > > > > You'll still need to parse the XML, but that's easy. > > > > Mike > > > > -- > Mohamed Eldesoky > www.eldesoky.net > RHCE >-- Mohamed Eldesoky www.eldesoky.net RHCE
Sorry for the flooding Mozilla decided to display the XML directly, without showing me the tags. Viewing the source, I see the tags, thanks On Thu, 17 Feb 2005 10:13:43 +0200, Mohamed Eldesoky <eldesoky.lists@gmail.com> wrote:> ummm > Tried it now without the xsl > It doesn't give the XML, just raw data !! > > Like that example below > > 191802042Icecast > 2.2.01240124100bitrate=24240http://radio.mysite.com:8000/shabab1MeLoDyZ.CoM > - B.S.B - More Than That > > All on one line > > On Thu, 17 Feb 2005 10:11:28 +0200, Mohamed Eldesoky > <eldesoky.lists@gmail.com> wrote: > > That is why I asked for a protocol :) > > Why we have to go the extra mile of parsing the XML, that will contain > > plenty of info we don't need !! > > > > Anyway, thank you for the tips. > > > > > > On Thu, 17 Feb 2005 10:39:26 +1100, Michael Smith <mlrsmith@gmail.com> wrote: > > > On Wed, 16 Feb 2005 16:23:03 +0200, Mohamed Eldesoky > > > <eldesoky.lists@gmail.com> wrote: > > > > I don't mind using the password. > > > > Just I am asking if there is some sort of protocol to retrieve the > > > > information without playing with the xsl !! > > > > I mean, to directly retrieve the wanted information, like > > > > > > > > ME: Get MetaData > > > > Server: Celin Dion - All comes back to me. > > > > > > Ah. For most (possibly all?) of the admin requests, there's an > > > alternative form that will just serve you the raw XML (which is what > > > the XSL transforms). Just use the same URL, but without the ".xsl" on > > > it. > > > > > > You'll still need to parse the XML, but that's easy. > > > > > > Mike > > > > > > > -- > > Mohamed Eldesoky > > www.eldesoky.net > > RHCE > > > > -- > Mohamed Eldesoky > www.eldesoky.net > RHCE >-- Mohamed Eldesoky www.eldesoky.net RHCE
On Thu, 17 Feb 2005 10:11:28 +0200, Mohamed Eldesoky <eldesoky.lists@gmail.com> wrote:> That is why I asked for a protocol :) > Why we have to go the extra mile of parsing the XML, that will contain > plenty of info we don't need !!Well, you've got the choice: Use the raw XML that has the information available in a clear, documented, and trivial-to-work-with way (getting the one bit of info you want out should be about 2 lines of code - at least if you have some XML libraries available), OR use the XSL mechanism to get icecast to transform it in whatever way you want - possibly producing just the single bit of data you want with nothing else. Mike