Hi there, I've got a really simple xml doc (extracted from an html table), and a really simple Nokogiri script, but for some reason I can't get the text out of the xml nodes. I can get attributes, but not the text/content. Anyone have any idea what could be wrong with the following?
Here's the xml:
<?xml version="1.0" encoding="UTF-8"?>
<table class="renderedtable" border="1" cellpadding="2" cellspacing="0" width="100%">
  <tr>
    <th valign="top">  
  <p class="MsoNormal"> AIR CONDITIONING, VENTILATION & HEATING</p>
    </th>
  </tr> 
</table>
And the simplest script in the world that raises a "undefined method 'content'"
require 'nokogiri'
a = IO.read('services_table.xml')
reader = Nokogiri::XML::Reader(a)
reader.each do |node|
  if node.name == 'p'
    @category = node.content
  end
end