🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10186

xpath - wszystkie elementy o atrybucie COS_*

#10186
From: kornik
Date: Sat, 06 Jun 2009 21:07
24 lines
1086 bytes
jaki powinien być warunek xpath aby np. wybrać wszystkie DIV-y
które mają atrybut zawierający tekst COS_

np.

<html>
<div class=COS_1>
<div>

<div class=COS_2>
<div>

<div class=COS_3>
<div>

<div class=GDZIES_1>
<div>

</html>

//div - wybierze wszystkie
//div[@class="COS_.*"] - nie działa

Jakieś propozycje ?
Technical Details
Message-ID: <h0elqb$arl$1@portraits.wsisiz.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!wsisiz.edu.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!wsisiz.edu.pl!not-for-mail
From: kornik <kornik@kornik.pl>
Newsgroups: pl.comp.xml
Subject: xpath  - wszystkie elementy o atrybucie COS_*
Date: Sat, 06 Jun 2009 23:07:24 +0200
Organization: WSISiZ
Lines: 25
Sender: bulkowsk@nospam.wsisiz.edu.pl
Message-ID: <h0elqb$arl$1@portraits.wsisiz.edu.pl>
NNTP-Posting-Host: host-89-228-71-117.olsztyn.mm.pl
Mime-Version: 1.0
X-Trace: portraits.wsisiz.edu.pl 1244322443 11125 89.228.71.117 (6 Jun 2009 21:07:23 GMT)
X-Complaints-To: abuse@wsisiz.edu.pl
NNTP-Posting-Date: Sat, 6 Jun 2009 21:07:23 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit