[phpXML] Re: I can't get an attribut value of an element
Brought to you by:
bs_php,
nigelswinson
From: <lu...@sa...> - 2001-10-08 15:28:16
|
At 19:41 01/08/01 +0000, flo...@co... wrote: >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="journal" revision="0.1.b"/> > <date revision="2000-12-31 15:54:00" revision_datestamp="9945456654" >creation="2000-12-31 15:54:00" creation_datestamp="9945456654"/> $blocs = $xml->evaluate('/list/date'); foreach ( $blocs as $bloc ) { $t = $xml->get_attributes( $bloc); $revision = $t['revision']; $revision_datestamp = $t['revision_datestamp']; $creation = $t['creation']; etc... <french> Les attributes sont dans un array </french Luc -- This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../ |