views:

42

answers:

1

I have an XML document where some of the nodes have a . in their name.

<com.site.blah>
   <id>asdkjasd</id>
   <com.site.testing>
       <name>test</name>
    </com.site.testing>
</com.site.blah>

If I do @doc.search("/*/id").first.xpath it returns /com.site.blah/id, but if I then do: @doc.search("/com.site.blah/id").first.inspect it returns nil

I want to be able to make an Xpath query to select the name under com.site.testing, but it keeps rejecting my queries.

Any ideas?

(I am using hpricot if it makes a difference)