Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Can not load XML: An invalid character was found in text content. Can not load XML: An invalid character was found in text content.To: NULL Date: 12/24/2008 7:06:00 AM Hi to everyone,
I cannot get the xml content of an rss feed (http://www.motocorse.com/
rss/full.xml) displayed on the page (http://www.wowline.it/
default2.asp) because of the error you see in the object.
The xml has encoding="windows-1252" on it and maybe this is the cause
of the problem, as the other feeds with encoding="ISO-8859-1" doesn't
have any problem.
I cannot change the xml feed because it's on another server, and this
one is the asp code I use to access the xml (URLtoRSS is the variable
containing the url):
Set xmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
xmlHttp.Open "GET", URLToRSS, false
xmlHttp.Send()
RSSXML = xmlHttp.ResponseText
Set xmlDOM = Server.CreateObject("MSXML2.DomDocument.3.0")
xmlDOM.async = False
xmlDOM.validateOnParse = False
xmlDom.resolveExternals = False
If not xmlDOM.LoadXml(RSSXML) Then
ErrorMessage = "Can not load XML:" & vbCRLF & xmlDOM.parseError.reason
& vbCRLF & ErrorMessage
End If
My asp page has charset="iso-8859-1" and Session.LCID = 1040.
Can anybody give me some advices?
Thank you and Merry Christmas!
Alex - Italy
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
