mickweight Wrote: > Haward, > > You mentioned controlling slim server from an ASP application, but I am > having problems doing this. > > I am using the DOM model within an ASP (VB Script) to generate an http > request and assign the response to an MSXML object, but it always > returns an error. The code runs fine from a VB Script file executed > from my desktop, so I'm thinking it must be some kind of permissions > issue with my ASP page making the request. Initially I just want to do > a simple query to get the current play list back, once I have this > working I'll expand to deal with adding and removing items from the > playlist etc... MSXML does not recognize status.xml as valid XML. I solved this by opening ..\SlimServer\server\HTML\xml\status_header.html and changed this:
<?xml version="1.0" encoding="[% LOCALE %]" standalone="no"?> <!DOCTYPE status SYSTEM "html/slimserver_xml.dtd"> <status xmlns="http://www.slimdevices.com/slimserver/xml"> <players> <playercount>[% playercount | html %]</playercount> <player> ... To this: <?xml version="1.0" encoding="[% LOCALE %]" standalone="no"?> <status> <players> <playercount>[% playercount | html %]</playercount> <player> ... In other words, I removed the DOCTYPE and namespace declarations. They don't seem to be necessary for Slimserver to operate properly, and after the change, the XML can be parsed. -- jonheal Jon Heal says: Have a nice day! http://www.theheals.org/ ------------------------------------------------------------------------ jonheal's Profile: http://forums.slimdevices.com/member.php?userid=2133 View this thread: http://forums.slimdevices.com/showthread.php?t=7618 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
