Why does xpath not return this XML node?

airjsorsdanxoy

New Member
So I have code that looks like this:\[code\]content_url = 'http://auburn.craigslist.org/cpg/index.rss'doc = Nokogiri::XML(open(content_url))bq = doc.xpath('//item')\[/code\]But it returns \[code\]bq\[/code\] as empty.I know for sure that it has that tag though, this is the first few tags on that page:\[code\]<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:ev="http://purl.org/rss/1.0/modules/event/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:admin="http://webns.net/mvcb/"><channel rdf:about="http://auburn.craigslist.org/cpg/index.rss">...</channel><item rdf:about="http://auburn.craigslist.org/cpg/3012277218.html">...</item>\[/code\]Thoughts?
 
Back
Top