[phpXML] I can't get an attribut value of an element
Brought to you by:
bs_php,
nigelswinson
From: <flo...@co...> - 2001-10-08 15:34:36
|
Actually, after a couple of hours of testing, I can't do something with it: I'm trying to get the value of an argument from a know element. for exemple, my xml file (successfully validated) begin like that: <list> <document> <content category=3D"journal" revision=3D"0.1.b"/> <date revision=3D"2000-12-31 15:54:00" = revision_datestamp=3D"9945456654" creation=3D"2000-12-31 15:54:00" creation_datestamp=3D"9945456654"/> . . . </document> </list> and I don't know how to get //list/document/date/@creation (those XPath request works with the enlightning script exemple) If i do (based on the German government reasearch tool): <? $xml =3D new XML("test.xml"); $test =3D $xml->evaluate("//list/*"); ?> here is the title : <? echo $xml->get_content($doc."/title[1]"); ## this works fine. ?><br> here is the creation date : I don't know how to get it!! Thank's for your help. -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |