Just Another Victim of the Ambient Morality wrote:

> doc = Nokogiri::XML(xml)
> puts doc.search('first')[0].attributes['look']
> doc = Hpricot(xml)
> puts doc.search('first')[0].attributes['look']
> 
>     ...produces this output:
> 
> 
> Big & small...
> Big & smal...
> 
>     I don't know which output is the correct one.  Does anyone know what's 
> going on here?

The second one is correct, because & is an encoding, and an XML tool should 
use & outside its interface and & inside its interface.

Now try these XPaths in Hpricot and NokoGiri - which combinations find the node?

   first[ @look = 'Big & small...' ]
   first[ @look = 'Big & small...' ]