Parse XML with JRuby (Hpricot?) With tags like <foo.bar>
I am trying to use some old XML with such elements in JRuby:
<x-doc attr="value">
<nested>
<with.dot>content</with.dot >
</nested>
</x-doc>
I worked with Hpricot, but HTML-oriented Hpricot shortcuts work against me: doc.search("//with.dot")it seems to be looking<with class="dot" />
(I ran into this problem with jQuery too a few years ago.)
Can I do this with Hpricot, or do I need to use another library?
+3