If I am not mistaken the XMLParse function takes a string and converts it
into an XML Object therefore I believe that if you use the XMLParse function
on your string and then do the isXML it will pass muster.

If you notice you are running the XMLParse function first in your older code
but have left it out in your newer code.


On 10/16/07, Paul Vernon <[EMAIL PROTECTED]> wrote:
>
> This isn't really a problem for me, rather an observation of strange
> behaviour processing some RSS feeds after migrating from CFMX6.1 to CF8.
>
> My old 6.1 code looked like this
>
> <cftry>
>                <cfset RSSDOM = XMLParse(RSSFeed)>
>                <cfset setRSSFeedData(feedID, RSSFeed)>
>        <cfcatch>
>                <!--- error handler code here --->
>        </cfcatch>
> </cftry>
>
> This was replaced with the following for CF8 to lower the code overheads
> of
> a cftry/cfcatch block.
>
> <cfif IsXML(RSSFeed)>
>        <cfset setRSSFeedData(feedID, RSSFeed)>
> <cfelse>
>        <!--- old CFMX6.1 error handler code here --->
> </cfif>
>
> My problem has been parsing a particular RSS feed from the address
> http://www.fontshop.com/fontfeed/archives/category/fontshop-news/feed/.
> IsXML says the RSS feed is invalid XML but XMLParse parses it just fine...
>
> Obviously the problem is one of consistency and I guess the only way to
> really know if the data is valid XML or not at the moment is to use the
> original try/catch solution but I thought I'd raise it as an issue of
> interest 'cos it's odd.
>
> Paul
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291300
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to