[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: xml_set_character_data_handler logic

2002-09-30 Thread Leendert
"Leendert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It appears that: > > xml_set_character_data_handler($parser, 'handleData'); > > calls handleData() 3 times per element. Does anyone know the reason behind > this? Sounds like that could be very inefficie