[phpXML] substringData doesn't work
Brought to you by:
bs_php,
nigelswinson
|
From: <pie...@wa...> - 2001-10-05 10:45:25
|
Hello,
I need some help with the substringData function, it doesn't return anything.
Am I doing something wrong?
Here is the code:
-----------------
$xml = new XPath($filepath);
$newsidentifier_eval = $xml->evaluate("NewsML/NewsEnvelope/DateAndTime");
echo $newsidentifier_eval[0] . " -- line1\n";
echo $xml->nodeName($newsidentifier_eval[0]) . " -- line2\n";
echo $xml->substringData($newsidentifier_eval[0]) . " -- line3\n";
Result:
-------
/NewsML[1]/NewsEnvelope[1]/DateAndTime[1] -- line1
DateAndTime -- line2
-- line3
Thanks in advance.
--
Pierre-Henri Delaval pie...@be...
Studio Wanadoo Lozenberg 22 - 1932 Zaventem
Tel: +32 (0)2 717 18 07
--
This message has been sent through the <phpXML/> user discussion list. To unsubscribe, please visit https://sslsites.de/mailinglisten/user/us...@li.../
|