XMLParse Error works in 6.1 but not 7

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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 =...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139