我正在尝试使用JRuby中的这样的元素来使用一些遗留XML:
<x-doc attr="value">
<nested>
<with.dot>content</with.dot >
</nested>
</x-doc>
我一直在使用Hpricot,但是Hpricot的面向HTML的快捷方式对我不利:doc.search("//with.dot")
似乎在寻找<with class="dot" />
(几年前我也遇到过JQuery这个问题。)
我可以使用Hpricot执行此操作,还是需要使用其他库?