Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 7th June 2000, 02:32   #1
Ramin
Junior Member
 
Join Date: Jun 2000
Posts: 2
Hi I am having trouble getting the XML parsed using ASP. Can not load the xml document using the load command. Any subjection?

<%
dim objXML
dim objXSL

dim sServer
dim sPasswd
dim dblPort

sServer = "server.name"
sPasswd = "password"
dblPort = 8000

Set objXML = Server.CreateObject("MSXML.DomDocument")
Set objXSL = Server.CreateObject("Microsoft.XMLDOM")


objXML.async = false
objXML.validateOnParse = false
if objXML.load("http://" & sServer & ":" & dblPort & "/admin.cgi?pass=" & sPasswd & "&mode=viewxml") then
objXSL.async = false
objXSL.load Server.MapPath("ShoutStyleWUsers.xsl")
ShoutcastXML objXML.transformNode(objXSL)
Response.Write objXML.transformNode(objXSL)
else
Set xPE = objXML.parseError
With xPE
strErrText = "Your XML Document failed to load" & _
"due the following error." & vbCrLf & _
"Error #: " & .errorCode & ": " & xPE.reason & _
"Line #: " & .Line & vbCrLf & _
"Line Position: " & .linepos & vbCrLf & _
"Position In File: " & .filepos & vbCrLf & _
"Source Text: " & .srcText & vbCrLf & _
"Document URL: " & .url
End With

Response.Write strErrText
end if

%>
Ramin is offline   Reply With Quote
Old 14th June 2000, 01:49   #2
Ramin
Junior Member
 
Join Date: Jun 2000
Posts: 2
The problem I found is in the XML TAG section:

LISTENERS and SONGHISTORY

If I remove it manually it works. I am not sure what is causing the problem.
Can anyone help?

thanks

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Ramin:
Hi I am having trouble getting the XML parsed using ASP. Can not load the xml document using the load command. Any subjection?

&lt;%
dim objXML
dim objXSL

dim sServer
dim sPasswd
dim dblPort

sServer = "server.name"
sPasswd = "password"
dblPort = 8000

Set objXML = Server.CreateObject("MSXML.DomDocument")
Set objXSL = Server.CreateObject("Microsoft.XMLDOM")


objXML.async = false
objXML.validateOnParse = false
if objXML.load("http://" & sServer & ":" & dblPort & "/admin.cgi?pass=" & sPasswd & "&mode=viewxml") then
objXSL.async = false
objXSL.load Server.MapPath("ShoutStyleWUsers.xsl")
ShoutcastXML objXML.transformNode(objXSL)
Response.Write objXML.transformNode(objXSL)
else
Set xPE = objXML.parseError
With xPE
strErrText = "Your XML Document failed to load" & _
"due the following error." & vbCrLf & _
"Error #: " & .errorCode & ": " & xPE.reason & _
"Line #: " & .Line & vbCrLf & _
"Line Position: " & .linepos & vbCrLf & _
"Position In File: " & .filepos & vbCrLf & _
"Source Text: " & .srcText & vbCrLf & _
"Document URL: " & .url
End With

Response.Write strErrText
end if

%&gt;
<HR></BLOCKQUOTE>

Ramin is offline   Reply With Quote
Old 14th June 2000, 03:44   #3
oddsock
Guest
 
Posts: n/a
Make sure you have the latest Shoutcast server, there were some major XML bugs in some of the earlier releases, and specifically, I think one was with the LISTENER tag...

oddsock
  Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump