From: Vaucher Bastien Date: 2007-02-21T18:32:44+09:00 Subject: Dealing with xpath using libxml Hi, I m trying to generate a xslt file from xhtml using libxml and when I m parsing the xhtml file and look at xpaths i get something ugly like : /*/*[2]/*[1] I tried to do the same with REXML and i obtained : /html/body/p When I m parsing xml files it works fine, but with xhtml files xpaths are really ugly. Does anyone know how to get nicer xpaths with libxml ? Thanks for your answers -- Posted via http://www.ruby-forum.com/.