FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problem with appendChild and ellipsis...
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Problem with appendChild and ellipsis... [message #173070] Sun, 20 March 2011 14:49 Go to previous message
Dennis is currently offline  Dennis
Messages: 17
Registered: February 2004
Karma:
Junior Member
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.

--

Dennis
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: PHP Module Writing Help
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 21:26:29 GMT 2024

Total time taken to generate the page: 0.03842 seconds