Yes, imagine my dismay when I discovered my host wasn't on 5, and 
therefore didn't support custom functions.  I'm in the process of moving 
the site.  Comments on the code are welcome, it should be documented and 
someday I want to write an article describing what I did and why I did it.
  Theoretically, you should be able to use the concepts I used to write a 
true XML parser.

At 08:43 AM 03/09/2002 -0600, you wrote:
>Very cool Jeff!
>
>Clint
>----- Original Message -----
>From: "Jeffry Houser" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Saturday, March 09, 2002 8:19 AM
>Subject: RE: Macromedia's XML Resource Feed
>
>
> >   I wrote a ColdFusion function to parse the newsfeed.  The code is
>located
> > on InstantColdFusion.com.  It's fairly specific to that newsfeed, though,
> > not a standard XML parser.
> >
> >   http://www.instantcoldfusion.com/resources/articles.cfm
> >
> >   For the record, WDDX and XML are two different things.  You will not be
> > able to inherently read the newsfeed using WDDX.
> >
> > At 09:05 AM 03/09/2002 -0500, you wrote:
> > >Is it that the WDDX cannot read the <?xml version="1.0" ?> tag? When I
>try
> > >to subscribe to this feed with my Radio Userland I get:
> > >
> > >Can't subscribe to the channel. The most likely cure is to check the URL
>in
> > >a web browser and see if you can get it to read the feed. The following
> > >message probably won't help you figure out what went wrong, but we
>include
> > >it here because it might. "Can't get the address of "rss" because the
>table
> > >doesn't have an object with that name."
> > >
> > >The reference you give says:
> > >
> > >ColdFusion
> > >Use the XML feed as a data source within ColdFusion to create dynamic
> > >content for an HTML page. In order to parse the XML in ColdFusion, you
>will
> > >need to use a third party XML parser such as a COM object or Java based
> > >parser.
> > >
> > >Of course you knew that. :-) My instinct is to use the loadXML method
> >
> >(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/ht
>m
> > >/xml_mth_hn_1nho.asp) by downloading it into some MSXML javascript like
> > >this:
> > >
> > >                 <SCRIPT LANGUAGE="JScript" TYPE="text/jscript">
> > >                         var xmlDoc = new
> > > ActiveXObject("Msxml2.DOMDocument.4.0");
> > >                         xmlDoc.async = false;
> > >                         xmlDoc.loadXML("#REReplace(CFHTTP.FileContent,
> > > Chr(62) & '[[[:space:]]]+'
> > >& Chr(60), Chr(62) & Chr(60), 'ALL')#");
> > >                         alert(xmlDoc.xml);
> > >                 </SCRIPT>
> > >
> > >Of course you have to download
> >
> >(http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?
>u
> > >rl=/msdn-files/027/001/766/msdncompositedoc.xml) and register
> > >(http://doc.ddart.net/xmlsdk/htm/sdk_installregister_4r76.htm) Microsoft
>XML
> > >Core Services 4.0 RTM. If you could download a copy local to the browser
>you
> > >could just use var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); and
> > >xmlDoc.load("macromedia_resources.xml"); and not have to worry about
> > >downloading the 4.0 as the XMLDOM is probably already installed in your
>IE
> > >browser.
> > >
> > >-----Original Message-----
> > >From: Andrew Peterson [mailto:[EMAIL PROTECTED]]
> > >Sent: Tuesday, March 05, 2002 1:54 PM
> > >To: CF-Talk
> > >Subject: Macromedia's XML Resource Feed
> > >
> > >
> > >Hi,
> > >
> > >Has anyone used Macromedia's resource feed with CF located at
> > >
> > >http://www.macromedia.com/desdev/articles/xml_resource_feed.html
> > >
> > >How is it done? I've done XML parsing with Moreover's XML feeds using
>WDDX,
> > >but this is different. Here's my feeble code:
> > >
> > ><CFSET REQUEST.LINK =
> > >"http://www.macromedia.com/desdev/resources/macromedia_resources.xml";>
> > >
> > ><CFHTTP URL="#request.link#" METHOD="Get">
> > >
> > ><cfwddx action="WDDX2CFML" input="#CFHTTP.FileContent#"
>output="MacroNews">
> > >
> > >The error is:
> > >
> > >unknown element encountered
> > >
> > >I know I'm probably way off in using WDDX to parse the xml doc here.  Any
> > >help here greatly appreciated.
> > >
> > >Thanks!
> > >Andrew
> > >
> > >
> >
>
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to