Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml to sql DB

Status
Not open for further replies.

brantGuy

Programmer
Feb 12, 2007
59
CA
Hey, hope someone can help

I have the following working
Code:
<cfif #qCheckDups.recordCount# eq 0>
insert into ahnFeed
(link, topic, title, pubDate, description)
values
('#world.rss.channel.item[x].guid.xmlText#', 'Sports', '#world.rss.channel.item[x].title.xmlText#', '#world.rss.channel.item[x].pubDate.xmlText#', '#world.rss.channel.item[x].description.xmlText#'
)

but its missing the image field...thing is images only come through with the feed every so ofter so when there is no image my app crashes.

Code:
<cfif #qCheckDups.recordCount# eq 0>
insert into ahnFeed
(link, topic, title, pubDate, description, image)
values
('#world.rss.channel.item[x].guid.xmlText#', 'Sports', '#world.rss.channel.item[x].title.xmlText#', '#world.rss.channel.item[x].pubDate.xmlText#', '#world.rss.channel.item[x].description.xmlText#', '#world.rss.channel.item[x].enclosure.XmlAttributes.url#'
)


any ideas how to acomplish this

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top