Dave,
If you just want to get iSyndicate XML going for your site,
I have just completed a set of modules to take care
translating a given set of iSyndicate XML feeds to WDDX
with a data structure that looks like:
Root (struct)
-> newsfeed[] (array of structs)
-> channel[] (array of structs)
-> cid (string) (e.g. cnbc.40_market.hl)
-> date (string) (e.g. 07/10/2001)
-> time (string) (e.g. 08:01 PST)
-> title (string) (e.g. CNBC.com: Market Stories)
-> headline[] (array of structs)
-> date (string) (e.g. Tue, July 10, 2001 08:01 AM)
-> time (string) (e.g. 08:01 PST)
-> title (string) (e.g. Debate rages on IT spending and productivity)
-> href (string) (a URI)
(I am working on TekBay specific WDDX->HTML portion now. :))
Obviously, this isn't a general solution like soXML or xmlquery.
This only works for iSyndicate. :)
I batch process TekBay's iSyndicate XML feed with a 3 stage process:
1) Get XML via CFHTTP
2) Convert XML to WDDX (no datatype conversion here)
3) Convert WDDX to HTML
I can provide code for 1) & 2) and skeleton code that traverses
the deserialized WDDX structure for 3). Let me know if you are
interested.
You can reach me via:
MSN: [EMAIL PROTECTED]
ICQ: 28917887 (require auth.)
Email: [EMAIL PROTECTED]
James Ang
Webmaster, TekBay.com
[EMAIL PROTECTED]
----- Original Message -----
From: "Dave Hannum" <[EMAIL PROTECTED]>
To: "CF-XML" <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 10:01 AM
Subject: [cf-xml] SOXML and iSyndicate
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.
Thanks,
Dave
=========== 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.
===============================
David R Hannum
Ohio University
Web Analyst/Programmer
(740) 597-2524
[EMAIL PROTECTED]
-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml
-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml