#1865 XPath?

Xan Wed 28 Mar 2012

Hi,

I want to know how to use xpath in fantom? Some time ago I use nokogiri.

How can I parse a file and search nodes. For example in nokogiri:

# Search for nodes by xpath
doc.xpath('//h3/a[@class="l"]').each do |link|
puts link.content
end

What really want is to search the last node and add another one.

Thanks in advance,

yliu Wed 20 Jun 2012

Bump. I'm curious about this too.

brian Wed 20 Jun 2012

Who uses XML anymore :-)

There is no XPath support in the xml pod. I was planning on adding it, but I really don't use XML much at all so never got around to it. If anyone wants to take it on as a project and work with me to add it into that API, shoot me an email.

bedla Fri 30 Nov 2012

XML without XPath is like woman without t*ts :]

andrey Fri 30 Nov 2012

Who cares if that old ugly woman has tits or not? ;) However you can always make ones for her of any shape and size if needed.

Login or Signup to reply.