Parsing RSS 1.0 with ColdFusion MX

coldfusion

Well thanks to Sean Corfield I understand why I was having issues with namespaces when trying to parse RSS 1.0 with XPath.

If you have a document with namespaces such as RSS 1.0, you need to fully qualify name spaces in your XPath queries, such as: /rdf:RDF/ - that makes sense, but what I didn't realize is that you still need to qualify the namespaces, when namespaces are used in the document for elements using the default namespace, such as item: /rdf:RDF/:item/.

Check out the ColdFusion RSS Feed Parser by Foundeo


cfobjective pre-conf training

Related Entries

2 people found this page useful, what do you think?

WAF for CF

Trackbacks

Trackback Address: 121/07B6268BBCDF234ADDD465A1933F7883

Post a Comment




  



Spell Checker by Foundeo

Recent Entries





Basecamp
pfreitag on twitter