469,352 Members | 1,694 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Error using XML - MSXML2.FreeThreadedDOMDocument

This has me stumped.

I've built an RSS reader using

Set objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocumen t")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.Load(BBS&"/yabb.pl?action=rss;feedboard="&board)

there are two versions of the RSS feed, identical as far as I can make
out, but whereas one works and gets parsed and displayed, the other
errors:

Error: opening (http://xxxxxxxxxxxxxxx/yabb_21/nph-yabb.pl?
action=rss;feedboard=exchange) The download of the specified resource has
failed. Line No.: 0 Character: 0 File Position: 0 Source Text: Error
Code:
-2146697208
I've tested both feeds via Feeddemon, and they both view through that,
and loading the page directly into Firefox, both come up with the same
"This XML file does not appear to have any style information associated
with it. The document tree is shown below."
In IE, the viewable one shows the xml code, the error one comes back
blank.
The only very slight difference I can see via feeddemon's view source is
<?xml version="1.0" encoding="iso-8859-1" ?>
for the dud one and
<?xml version="1.0" ?>
for the viewable one. Taking the encoding out desn't make any difference
though.
Jan 11 '06 #1
2 6468
I can't answer your issue, but may have a similar problem with RSS and
encoding.

Do you know how to set encoding within ASP pages? As
<?xml version="1.0" encoding="iso-8859-1" ?> and others do not affect the
database output as this defaults to the server settings (in my case
US-ASCII which fouls up numerous characters?

M

--
---
"s_m_b" <sm********@hotmail.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
This has me stumped.

I've built an RSS reader using

Set objXML = Server.CreateObject("MSXML2.FreeThreadedDOMDocumen t")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.Load(BBS&"/yabb.pl?action=rss;feedboard="&board)

there are two versions of the RSS feed, identical as far as I can make
out, but whereas one works and gets parsed and displayed, the other
errors:

Error: opening (http://xxxxxxxxxxxxxxx/yabb_21/nph-yabb.pl?
action=rss;feedboard=exchange) The download of the specified resource has
failed. Line No.: 0 Character: 0 File Position: 0 Source Text: Error
Code:
-2146697208
I've tested both feeds via Feeddemon, and they both view through that,
and loading the page directly into Firefox, both come up with the same
"This XML file does not appear to have any style information associated
with it. The document tree is shown below."
In IE, the viewable one shows the xml code, the error one comes back
blank.
The only very slight difference I can see via feeddemon's view source is
<?xml version="1.0" encoding="iso-8859-1" ?>
for the dud one and
<?xml version="1.0" ?>
for the viewable one. Taking the encoding out desn't make any difference
though.

Jan 13 '06 #2
"Mettá" <Me***@remove-thismetta.org.uk> wrote in
news:O#*************@TK2MSFTNGP12.phx.gbl:

Response.Write ("<?xml version=""1.0"" encoding=""utf-8""?>" & vbLf)
Response.Write ("<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0
Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd"">" & vbLf)
Response.Write ("<html xmlns=""http://www.w3.org/1999/xhtml""
xml:lang=""en"">" & vbLf)

is my standard 'header' for asp pages
or

<?xml version="1.0" ?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/">
for RSS

can't guarantee that this'll sort your encoding, but keeping to utf and iso
always seems to give good standard output. The main issue with RSS I find
is that any characters outside the alpha-numerical standard have to be
encoded otherwise some readers get upset.
I can't answer your issue, but may have a similar problem with RSS and
encoding.

Do you know how to set encoding within ASP pages? As
<?xml version="1.0" encoding="iso-8859-1" ?> and others do not affect
the database output as this defaults to the server settings (in my
case US-ASCII which fouls up numerous characters?

M


Jan 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Mark Constant | last post: by
2 posts views Thread by Bernhard Sturm | last post: by
4 posts views Thread by mirandacascade | last post: by
3 posts views Thread by Jon Paal | last post: by
5 posts views Thread by Abhinay | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.