🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

[XPath] Petit probleme pour r�cup�rer la valeur d'un attribut

#9263
From: Luc Saint-Elie
Date: Tue, 08 May 2001 10:49
31 lines
1708 bytes
Bonjour,

Soit le fichier XML suivant :

<?xml version="1.0" encoding="iso-8859-1"?>

<navigation>
	<menu name="navHaut">
		<lien id="1">
			<url>index.php</url>
			<intitule>Accueil</intitule>	 
	 	</lien>
	 	<lien id="2">
			<url>index.php?op=surleweb</url>
			<intitule>Ailleurs sur Internet</intitule>
	 	</lien>

[.... etc..]

Je n'arrive pas � �crire la commande XPath pour r�cup�rer la valeur de
l'id de <lien>

J'ai � peu pr�s tout essay� (sauf la bonne solution) 

C'estd ans du PHP et je voudrais arriver � un truc du genre :

$lienid =$xml->evaluate ("la commande que je n'arrive pas � �crire");

A que merci par avance

Luc
Technical Details
Message-ID: <k2kfftoodb2m3q8f4s9rj7a2muev41kbc2@4ax.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,e58eb35aa5a0636,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-05-08 03:49:42 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2-1.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail
From: Luc Saint-Elie <luc@saint-elie.com>
Newsgroups: fr.comp.text.xml
Subject: [XPath] Petit probleme pour r�cup�rer la valeur d'un attribut
Organization: Saint-Elie
Reply-To: luc@saint-elie.com
Message-ID: <k2kfftoodb2m3q8f4s9rj7a2muev41kbc2@4ax.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 31
Date: Tue, 08 May 2001 10:49:41 GMT
NNTP-Posting-Host: 195.132.202.86
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp5.proxad.net 989318981 195.132.202.86 (Tue, 08 May 2001 12:49:41 CEST)
NNTP-Posting-Date: Tue, 08 May 2001 12:49:41 CEST