[PHP] Re: simplify DOM api

2006-03-07 Thread Rob Richards
Andreas Korthaus wrote: Rob Richards wrote: You can also look at using xmlwriter, when creating serialized trees, that automatically does escaping for you. Hm, AFAIK latest xmlwriter versions provide an OO API. Do you know about any documentation for it? I will try to add some time permitti

[PHP] Re: simplify DOM api

2006-03-06 Thread Andreas Korthaus
Rob Richards wrote: You can also look at using xmlwriter, when creating serialized trees, that automatically does escaping for you. Hm, AFAIK latest xmlwriter versions provide an OO API. Do you know about any documentation for it? The only code I've seen so far is: http://cvs.php.net/viewcv

[PHP] Re: simplify DOM api

2006-03-06 Thread Rob Richards
Andreas Korthaus wrote: I think this should be OK, or shouldn't I do it this way? Both ways are perfectly acceptable and all up to personal preference. In fact, to support the way you are doing it was one of the reasons why DOM classes were allowed to be extended. Perhaps you have seen that