XML_Tree->getTreeFromString CRLF and CDATA woes
| From: | Si | Date: | Tue, 25 Feb 2003 00:51:22 +0000 |
| Subject: | XML_Tree->getTreeFromString CRLF and CDATA woes | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3933@lists.php.net to get a copy of this message | ||
Hi,
With current 1.1 release of XML_Tree class, when using getTreeFromString method, if XML has carriage
return/line feed in the attributes they are getting removed.
Is this intended behaviour? I am using php://input stream to read XML from a (flash MX) client
before dumping to a db, and I've checked that CRLF is in the stream, but not in the XML_Tree
object after parsing...and obviously I need it in there.
Also, CDATA tags don't appear to be parsed. ie. The CDATA tag is left in there as text. Is
this also intended behaviour?
Finally, just read that about the new Tree class:
http://marc.theaimsgroup.com/?l=pear-general&m=104395092425710&w=2
Sorry, I'm confused, this Tree class filename is Tree.php, which is the same as XML_Tree class
filename, is this intended? are they getting merged or will they be in separate directories? Need
to know how handle for future releases of my software.
I know it sounds like i'm complaining a lot (especially for a first post), but I really love
XML_Tree class, it kicks ass! Just a few niggling problems.
Thanks in advance.
peace
si