[phpXML] Could you help a newbie ? ;o)
Brought to you by:
bs_php,
nigelswinson
From: <pe...@zu...> - 2001-10-08 17:41:24
|
Hi ! I've testet the XML parser first time today - and it works great. I've only one problem: XML-Example: <?xml version=3D"1.0" encoding=3D"ISO-8859-1" standalone=3D"yes"?>=20 <CONTENT> <DATE value=3D"1">2001-09-06 14:45:12</DATE> <CONTENTTYPE>plain/text - news</CONTENTTYPE> <NEW> <HEADLINE>Motorola bringt das Handy zum Aufziehen</HEADLINE> <NEWSBODY>06.09.01 - Zum Thema regenerative ....</NEWSBODY> </NEW> </CONTENT> With the function evaluate I can retrieve the Information in the the <NEW> = tag, with $CONTENT =3D $xml->evaluate("//NEW"); foreach ( $CONTENT as $NEW ) { $HEADLINE =3D $xml->get_content($NEW."/HEADLINE[1]"); $NEWSBODY =3D $xml->get_content($NEW."/NEWSBODY[1]"); echo $HEADLINE."<p>".$NEWSBODY."<hr size=3D"1" noshade>"; } But how can retrieve the information in the DATE and CONTENTTYPE -Tag ???? Thx for help ! Petra -- This message has been sent through the <phpXML/> user discussion list. To u= nsubscribe, please visit https://sslsites.de/mailinglisten/user/user@lists.= phpxml.org/ |