You're right Sam, I wrote too quickly without checking...
Luc
En réponse à [EMAIL PROTECTED]:
> Maybe missing '/'
> Try :
>
> foreach ($listofNews as $news) {
> $t = $xml->getAttributes ("/NewsML/Catalog");
> echo $t['Href'];
> echo $xml->getData("/NewsML[1]/NewsEnvelope[1]/DateAndTime[1
Maybe missing '/'
Try :
foreach ($listofNews as $news) {
$t = $xml->getAttributes ("/NewsML/Catalog");
echo $t['Href'];
echo $xml->getData("/NewsML[1]/NewsEnvelope[1]/DateAndTime[1]");
}
--
Sam Blum <[EMAIL PROTECTED]>
===
For the most recent version of phpxml,
En réponse à [EMAIL PROTECTED]:
Hello Pierre-Henri
I'm learning XML/Xptah so I'm interested by your code.
Why did you choose NOT to use this kind of code :
Here is the XML file:
-
http://www.afp.com/dtd/AFPCatalog.xml"/>
20010608T133354Z
Here is the code: