[PHP] Re: xml_set_character_data_handler logic

2002-09-30 Thread Leendert Brouwer
Cardinal from IRC answered my question. It turns out that when you indent your childs with tabs, it sees those tabs as cdata of the root element. I had the following XML file: sampleDBName sampleUser localhost The tabs in front of the child elements were treated as CDATA of the roo

[PHP] Re: [PHP-DEV] toString() in SimpleXML?

2005-02-17 Thread Leendert Brouwer
Hi Marcus, Marcus Boerger wrote: having a function __toString() would interfere with the mapping ideas of SimpleXML. However it is there internally so you simply do one of the following: php -r '$x=SimpleXML_load_string("blablabla"); echo $x, "\n"; var_dump((string)$x);' I'm aware of that. But h