On 3/21/06, jonheal
<[EMAIL PROTECTED]> wrote:
>
> geoffb Wrote:
> > On 3/21/06, jonheal wrote:
> > >
> > > I'm trying to parse http://localhost:9000/xml/status.xml to grab
> > values
> > > in order to build a page on our public web site that shows what's
> > > currently playing on our SqueezeBox.
> > >
> > > I'm using VBScript and DOM.
> > >
> > > The "file" -- and I guess it's not really a file but generated on
> > the
> > > fly -- simply will not process because of one or both of these
> > lines:
> > >
> > > <!DOCTYPE status SYSTEM "html/slimserver_xml.dtd">
> > > <status xmlns="http://www.slimdevices.com/slimserver/xml";>
> > >
> > > I have a feeling it's the DOCTYPE because of the relative path that
> > my
> > > script can't resolve.
> > >
> > > I can load the file, but attempting to get a value of a node fails.
> > > Anyone have any ideas on how I can get around this?
> >
> > Are you using MSXML?  If so, which version of the DOM model are you
> > using?
> > It looks like the the parser is trying to check the dtd and can't.
> > Have you tried turning off validation in the XML reader?
> > Something like the validateOnParse property might help do this, see
> > the IXMLDOMDocument entry here:
> > http://tinyurl.com/qnttp
> >
> > Cheers
> > Geoff
>
> I put back the lines I had removed from HTML/xml/status_header.html and
> then added this line to my script:
>
> objXMLDoc.validateOnParse = False
>
> ...but it still didn't work, so for the time being, I'll just continue
> to leave those two lines out of HTML/xml/status_header.html
>
> I'm using MSXML2.DOMDocument.4.0
>

You might also want to try (in addition to the .validateOnParse):
objXMLDoc.resolveExternals = False

Cheers
Geoff
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to