Re: Problem with appendChild and ellipsis... [message #173075 is a reply to message #173070] |
Sun, 20 March 2011 17:14 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 3/20/2011 10:49 AM, Dennis wrote:
> When writing a DOMDocument I have code similar to this...
>
> $title = $doc->createElement("title");
> $item->appendChild($title);
>
> $title_data = "Some data followed by an ellipses…";
>
> $title_text = $doc->createTextNode($title_data);
> $title->appendChild($title_text);
>
> When I look at the resulting file the<title></title> is there but it is
> empty. I displayed $title_text->wholeText and the string with the
> ellipsis is there. So it appears that something in appendChild is
> gagging on the ellipsis.
>
> Any thoughts?
>
> I wonder if there are other characters that might cause a problem.
>
I've never seen a problem like this, but then I can't say whether I've
used ellipses or not (if I have, it hasn't been a problem).
Can you post the actual code which is failing (or, if it's too long, a
complete example of the failure)?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|