Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
DaveF67 #1
XMLParse Error works in 6.1 but not 7
I have a chunk of code that works on my 6.1 server, but not on my MX 7
server.... wtf?
HELP!
Thanks,
Dave :+)
<CFHTTP METHOD="GET" URL="http://rss.news.yahoo.com/rss/science"/>
<CFSET tmpObj = cfhttp.filecontent>
<CFSET objRSS = xmlParse(trim(tmpObj))>
<CFOUTPUT>
<CFSET Item_Length = arrayLen(objRSS.rss.channel.item)>
<TABLE border=0 cellpadding="1" CELLSPACING="1" WIDTH="165"
BGCOLOR="Gainsboro">
<TR><TD><FONT SIZE="1"
FACE="VERDANA"><B>#objRSS.rss.channel.title.XmlTex t#</B></FONT></TD></TR>
<CFLOOP FROM="1" TO="#Item_Length#" INDEX="x">
<TR><TD BGCOLOR="white"><FONT SIZE="1" FACE="VERDANA"><A
HREF="#objRSS.rss.channel.item[x].link.XmlText#"
TITLE="#objRSS.rss.channel.item[x].description.XmlText#">#objRSS.rss.channel.it
em[x].title.XmlText#</A></FONT></TD></TR></CFLOOP></TABLE>
</CFOUTPUT>
DaveF67 Guest
-
XMLParse and XMLSearch
I have the following code: a variable "x" that contains an XML string; if I do an XMLParse on this variable, it works (cfdump shows me the xml... -
XmlParse Problems
Hello, I have searched everywhere and tried everything and cannot fix the problem. I continually get the following error when trying to use the... -
xmlParse(cfhttp.filecontent)
I am using coldfusion to read rss feed. I was wondering why xmlParse(cfhttp.filecontent) works in one file residing in test server and fails to... -
XmlParse Delay capabilities in 7
I am trying to set a delay with the XMLParse function available only in 7.0. I set the XMLParse function as follows: <cfset xmlQuery =... -
error but code works
Hi folks, I've got the following code which works, but generates the error message following it. I've tried varying the code to eliminate the... -
DaveF67 #2
XMLParse Error works in 6.1 but not 7
I have a chunk of code that works on my 6.1 server, but not on my MX 7
server.... wtf?
HELP!
Thanks,
Dave :+)
:evil;
<CFHTTP METHOD="GET" URL="http://rss.news.yahoo.com/rss/science"/>
<CFSET tmpObj = cfhttp.filecontent>
<CFSET objRSS = xmlParse(trim(tmpObj))>
<CFOUTPUT>
<CFSET Item_Length = arrayLen(objRSS.rss.channel.item)>
<TABLE border=0 cellpadding="1" CELLSPACING="1" WIDTH="165"
BGCOLOR="Gainsboro">
<TR><TD><FONT SIZE="1"
FACE="VERDANA"><B>#objRSS.rss.channel.title.XmlTex t#</B></FONT></TD></TR>
<CFLOOP FROM="1" TO="#Item_Length#" INDEX="x">
<TR><TD BGCOLOR="white"><FONT SIZE="1" FACE="VERDANA"><A
HREF="#objRSS.rss.channel.item[x].link.XmlText#"
TITLE="#objRSS.rss.channel.item[x].description.XmlText#">#objRSS.rss.channel.it
em[x].title.XmlText#</A></FONT></TD></TR></CFLOOP></TABLE>
</CFOUTPUT>
DaveF67 Guest



Reply With Quote

