Using SOXML (great tag) on iSyndicate feeds, I don't know how to handle this
setup.  Perhaps someone can tell me what I'm doing wrong.

=========== iSyndicate Feed ==================
<?xml version="1.0"?>
<newsfeed>

<channel cid="sporting_news.mlb.hl"
    title="The Sporting News: MLB"
    date="07/22/2001"
    time="12:28 PST">

<headline
    href="http://shortenedurlforthispurpose.com";
    date="Tue, July 24, 2001 09:28 AM"
    time="09:28 PST">No. 1 overall pick Mauer has two hits in pro debut
</headline>

================= My attempt to parse ================
<cf_SOXML
  action="XML2CF"
  input="http://headlines.isyndicate.com/someulr.xml";
  output="stNewsHeadLines"
  type="file">

<CFLOOP INDEX="sFeed" FROM="1" TO="5">
    <CFSCRIPT>
         sFeed = sFeed;
         sHeadline = stNewsHeadlines.newsfeed.channel.headline[sFeed].Value;
         sURL = stNewsHeadlines.newsfeed.channel.headline[sFeed].href.Value;
</CFSCRIPT>
<CFOUTPUT>
    #sHeadline#<BR>#sURL#<P>
</CFOUTPUT>
  </CFLOOP>

=========== Yields ====================
An error occurred while evaluating the expression:


    sFeed = sFeed;
        sHeadline = stNewsHeadlines.newsfeed.channel.headline[sFeed].Value;
        sURL = stNewsHeadlines.newsfeed.channel.headline[sFeed].href.Value;




Error near line 18, column 2.
----------------------------------------------------------------------------
----

The member "HREF" in dimension 1 of object
"stNewsHeadlines.newsfeed.channel.headline" cannot be found. Please, modify
the member name.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to