[phpXML] Re: [phpXML] Re: [phpXML] substringData doesn't work
Hello, I need some help with the substringData function, it doesn't return anything. Am I doing something wrong? Here is the XML file: - http://www.afp.com/dtd/AFPCatalog.xml"/> 20010608T133354Z 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. -- This message has been sent through the user discussion list. To unsubscribe, please visit https:[EMAIL PROTECTED]/ ___ Phpxmldb-phpxml-arc mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/phpxmldb-phpxml-arc
[phpXML] Re: [phpXML] substringData doesn't work
Send nice, little and *complete* samples with a *litte* XML sample. I'm I have to study longer then 3 min I won't help. -- Sam Blum <[EMAIL PROTECTED]> === For the most recent version of phpxml, V1.N.X, and an archive of this list visit: http://www.sourceforge.net/projects/phpxmldb -- This message has been sent through the user discussion list. To unsubscribe, please visit https:[EMAIL PROTECTED]/ ___ Phpxmldb-phpxml-arc mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/phpxmldb-phpxml-arc