[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Dealing with xpath using libxml

Vaucher Bastien

2/21/2007 9:33:00 AM

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-....