xpath - Parsing a blogspot XML file with Nokogiri -


I have exported a blogspot XML file and looks something like this:

   ; ; & Gt; Feeds & lt; Entry & gt; & Lt; Title & gt; Title & lt; / Title & gt; & Lt; Content type = "html" & gt; Content & lt; / Content & gt; & Lt; / Entry & gt; & Lt; Entry & gt; & Lt; Title & gt; Title & lt; / Title & gt; & Lt; Content type = "html" & gt; Content & lt; / Content & gt; & Lt; / Entry & gt; & Lt; / Feed & gt;         

Bin / rabbi is required 'Rukigams' Required 'nockery' doc = nautygree :: XML (file.open ("blogspot xml")) doc.xpath ('// content [@ type = "html"]'). Do Do | Node | Puts node.text end

but it is not giving me anything: /

Any suggestions? : /

Your code works for me There were some problems with some versions of Nokiaji

I get:

  content content  

I am using nakari (1.4.1 x 86-mswin32)


Comments