"Jobs" is capitalized in the XML.
This works:
<cfset myxmldoc = XmlParse("
http://feeds.jobs2web.com/feeds/view?siteId=246&feedId=682")>
<cfset title = XmlSearch(myxmldoc, "/Jobs/job/title")>
<cfdump var="#title#">
On Wed, Sep 21, 2011 at 9:02 AM, Torrent Girl <[email protected]> wrote:
>
> Hi all
>
> I tried to parse the XML from the following feed as I normally do and kept
> getting error messages ("not defined") on everything I tried.
>
> http://feeds.jobs2web.com/feeds/view?siteId=246&feedId=682
>
> Here are a few snippets that I tried:
>
> <cfset xmldoc = XmlParse("
> http://feeds.jobs2web.com/feeds/view?siteId=246&feedId=682")>
>
> <cfloop list="#xmldoc#" index="i">
> <cfoutput>
> #xmlDoc.jobs.job.title.XmlText#<br />
> </cfoutput>
> </cfloop>
>
>
>
> <cfset myxmldoc = XmlParse("
> http://feeds.jobs2web.com/feeds/view?siteId=246&feedId=682")>
> <cfset title = XmlSearch(myxmldoc, "/jobs/job/title")>
> <cfset location = XmlSearch(myxmldoc,
> "/jobs/job/location")>
> <cfset department = XmlSearch(myxmldoc,
> "/jobs/job/department")>
> <cfset referencenumber = XmlSearch(myxmldoc, "/jobs/job/referencenumber")>
> <cfset link = XmlSearch(myxmldoc, "/jobs/job/url")>
> <cfset description = XmlSearch(myxmldoc, "/jobs/job/description")>
>
>
>
> Any suggestions?
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347556
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm