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
Re: Problem with appendChild and ellipsis... [message #173077 is a reply to message #173075] Sun, 20 March 2011 18:24 Go to previous messageGo to previous message
Dennis is currently offline  Dennis
Messages: 17
Registered: February 2004
Karma:
Junior Member
On Sun, 20 Mar 2011 13:14:29 -0400, Jerry Stuckle
<jstucklex(at)attglobal(dot)net> wrote:

> Can you post the actual code which is failing (or, if it's too long, a
> complete example of the failure)?

Here's a short sample that illustrates the problem...

<?php

foo();
echo "test done<br>";
exit;

function foo()
{
$doc = new DOMDocument();
$doc->formatOutput = true;

$title = $doc->createElement("title");
$doc->appendChild($title);

$title_data = "Some data followed by an ellipsesÂ…";

$title_text = $doc->createTextNode($title_data);
$title->appendChild($title_text);

$doc->saveXML();
$doc->save("test.xml");

echo "foo done<br>";
}

?>


--

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: Sun Nov 10 15:56:47 GMT 2024

Total time taken to generate the page: 0.47679 seconds