Posted by Marian Steinbach on 03/19/07 14:29
Howdy!
I am just switching from PHP4 to PHP5. Since there are many different
ways to create XML in PHP5, I'd like to know from the community which
one would be suited best for a REST web service API.
I guess that beeing CPU friendly and using little RAM both count very
high here as criteria.
Here are some methods to be considered (probably not complete):
1) XMLWriter
haven't tested that yet.
2) Using a template framework like PEAR HTML_Template_Sigma
I'm doing this for RSS feeds in PHP 4 already. Unfortunately, I have
no comparison with other methods.
3) Writing XML "manually"
like $xml .= '<tag>'.utf8_encode($value).'</tag>';
4) you name it
Thanks to everybody who helps me to investigate/benchmark into the
right direction! I'd also be happy about articles on that topic.
Marian
Navigation:
[Reply to this message]
|