Nico Edtinger wrote:
It's easier to call $doc->createTextNode('body', 'Text of body')
than to write four lines of code.
Isn't that the same as $doc->addChild('body', 'Text of body'); with
simplexml? I've tested with:
But where's the CDATA element in this code, Nico? Have you ommited it on
purpose? :)
But you're missing the point here. There are places in _DOM_ where such convenience
classes would be justified. That's all I'm saying. The code is pretty irrelevant. I
have given this sample because we're all more comfortable with code examples, right?
--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell