🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #157

Re: [REXML] next_sibling et noeud text

#157
From: Une Bévue
Date: Wed, 05 May 2010 12:45
30 lines
2497 bytes
Alain Ketterlin <alain@dpt-info.u-strasbg.fr> wrote:

> Oui, le blanc pourrait tr�s bien �tre significatif.

oui, c'est vrai.

> XPath a pens� � tout, en particulier aux "axes" :
> 
> //a[@href='wget.html'/following-sibling::br

  br =
root.elements["/html/body/a[@href='#{href}']/following-sibling::br"]

marche impec !
je ne pensais pas que ReXML suivait si bien XPath... et ne me souvenais
plus de la syntaxe.

> Au passage, si tu peux �viter le // c'est autant de gagn�.

j'imagine que c'est + co�teux en temps, CPU usage ?

je ne comprends pas pourquoi ReXML n'aime pas :
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr' lang='fr'>
-------------------------------------------^^^^^^^^^^^^^-----------

en tout cas, merci beaucoup pour ce rappel )))

-- 
 � L'amour n'a pas de meilleur ministre que l'occasion. � 
   (Miguel de Cervant�s)
Technical Details
Message-ID: <1ji0wdp.mclpd61te3v4N%unbewusst.sein@google.com.invalid>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!nocworld.net!feed.ac-versailles.fr!news.in2p3.fr!in2p3.fr!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp18-2.free.fr!not-for-mail
References: <1jhzqh3.1cm2ehi1445zmnN%unbewusst.sein@google.com.invalid> <87aasezrzv.fsf@dpt-info.u-strasbg.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: 8a75585569,32b51a556e9c0535
X-Google-Attributes: gid8a75585569,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: FRENCH,ASCII
Newsgroups: fr.comp.text.xml
Subject: Re: [REXML] next_sibling et noeud text
From: unbewusst.sein@google.com.invalid (Une Bévue)
Date: Wed, 5 May 2010 14:45:34 +0200
Message-ID: <1ji0wdp.mclpd61te3v4N%unbewusst.sein@google.com.invalid>
References: <1jhzqh3.1cm2ehi1445zmnN%unbewusst.sein@google.com.invalid> <87aasezrzv.fsf@dpt-info.u-strasbg.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Organization: Oedipe Roi
X-Face: &pPJZaj=yETTJi[(==kP&`'Q;P^*m-|g$gyxFPnI&&}+;Ul=lZ_p6pQS!\#x]
        U4[^EN"1.E)El1acOX,9T\P2).0&^\5Fg';UzeOPF5\Su)"]oXFO9e=Z*Z4!+/</>A!Z
        GQ"IgmAM7Z%1AC9=w*Z&0:->1#.}/|4:GT1KOLp7CQkIm-ZdRm2RrCbD}|X<[VFA?]gI
        DX68liFMy#}lH<Vi'pewlEDG\>]RIKyk#]pSaJTB_RA7EY%Js^>{o)v#DZS&k#zv|Nsj
        O/aWDf\hl1+iN<IKtS%a?A:\yu;Q{.]fD%ObQgY?{2szAy_U
User-Agent: MacSOUP/F-2.8.3 (Mac OS X version 10.6.3 (x86))
Lines: 30
NNTP-Posting-Date: 05 May 2010 14:45:34 MEST
NNTP-Posting-Host: 88.183.202.165
X-Trace: 1273063534 news-3.free.fr 24075 88.183.202.165:60886
X-Complaints-To: abuse@proxad.net
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!nocworld.net!feed.ac-versailles.fr!news.in2p3.fr!in2p3.fr!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp18-2.free.fr!not-for-mail
X-Original-Bytes: 2277