[phpXML] Re: substringData doesn't work

2001-10-01 Thread luc
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

[phpXML] Re: [phpXML] Re: substringData doesn't work

2001-10-01 Thread bs_php
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,

[phpXML] Re: substringData doesn't work

2001-10-01 Thread luc
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: