How to print XPath search?
<p>I'm trying to parse an XML file with Nokogiri:</p>

<pre><code> require 'nokogiri'
 require 'open-uri'

  @doc = Nokogiri::XML(open('http://xml.pinnaclesports.com/pinnacleFeed.aspx?sportType=E%20Sports&amp;contest=no'))
  @doc.xpath("//event[@league='*LOL*']")
  print @doc.text
</code></pre>

<p>which works and prints all the events that contain "LOL" in the "league" attribute, but when I create a block, it runs but prints nothing:</p>

<pre><code>@doc.xpath("//event[@league='*LOL*']").each do |league_element|
   puts "\n"+league_element.xpath('league').text
end
</code></pre>