Managed Hosting



YouTube CFC
Project Home Known Issues Contact Project

YouTube CFC Issue: xmlSearch breaks in CF10

Name: xmlSearch breaks in CF10
ID: 5
Project: YouTube CFC
Type: Bug
Area: Code
Severity: High
Status: Open
Related URL: http://www.cfdad.com/2012/08/24/coldfusion-10-broken-xmlsearch/
Creator: David Smith
Created: 05/09/13 8:25 AM
Updated: 05/09/13 8:25 AM
Description: There is an error with this line of code when running on CF10:

<cfset links = xmlSearch(packet, "//:link[@rel='http://schemas.google.com/g/2006##spellcorrection']")>

CF10 does not like the //: part of the parameter. I fixed by simply removing //: and the script works now in CF10 and CF9. It looks like this:

<cfset links = xmlSearch(packet, "link[@rel='http://schemas.google.com/g/2006##spellcorrection']")>

You may want to test this and update the code on RIAForge accordingly.
History: Created by flguy (David Smith) : 05/09/13 8:25 AM

To add a comment to this bug, please login using the link above.