note 40475 added to function.xml-set-character-data-handler

From: Date: Thu, 04 Mar 2004 17:31:29 +0000
Subject: note 40475 added to function.xml-set-character-data-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-66264@lists.php.net to get a copy of this message
Hello, This is an addition to the note posted by: wiart at yahoo dot com 22-Aug-2003 05:31 Which is located below. I had similar problems manually creating XML docs and adding new-lines within my node data, e.g. <root> ... <node attribute="something"> Here is some data. There is a lot of data, and I want to be able to read the data from a terminal window, so I add newlines to fit everything within 80 columns. </node> ... </root> So, given the above example, my data handler gets called 3 times and the result left in my variable is: "newlines to fit everything within 80 columns." Instead of all of the data within "node", which I was expecting. By using the concatenation operator; however, as suggested by the mentioned note, I was able to get what I needed. Which is of course: "Here is some data. There is a lot of data, and I want to be able to read the data from a terminal window, so I add newlines to fit everything within 80 columns." ---- Manual Page -- http://www.php.net/manual/en/function.xml-set-character-data-handler.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40475 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40475&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40475&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66264) next »