Re: [PHP] [xml] character data

2003-10-28 Thread Burhan Khalid
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

Re: [PHP] [xml] character data

2003-10-11 Thread Raditha Dissanayake
What Tom has to say + you should note that character data may be called more than once for each call to startElement. 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 w

Re: [PHP] [xml] character data

2003-10-10 Thread Tom Rogers
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? DA> -- DA> $xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml'; DA> if

[PHP] [xml] character data

2003-10-10 Thread Decapode Azur
I do not understand why this line does not work : $info[$element] = $content; but yet this works: echo $content; why? what is the trick? -- $xml_comment_file = basename($svg_file, '.svg.xml') .'.info.xml'; if (file_exists($xml_comment_file)) { $file = $xml_comment_file; $info = array