Tom Rogers wrote:

Hi,

Saturday, October 11, 2003, 6:26:01 AM, you wrote:
DA> I do not understand why this line does not work :
DA> $info[$element] = $content;

DA> but yet this works: echo $content;

DA> why? what is the trick?

[ snipped ]


the function characterData can be called with whitespace which is probably
overwriting your content
try this

$content = trim($content);
if(!empty($content)) $info[$element] = $content;

Or you can strip all the whitespace from the xml document and send that in.


--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to