News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Guidelines for generating XML
July 15, 2010 @ 11:50:44

On there's a recent post from Evert Pot talking about some guidelines for generating XML including a brief PHP example.

Over the last little while I've come across quite a few XML feed generators written in PHP, with varying degrees of 'correctness'. Even though generating XML should be very simple, there's still quite a bit of pitfalls I feel every PHP or (insert your language)-developer should know about.

His suggestions for better XML include:

  • You are better off using an XML library (like xmlwriter)
  • Understand Unicode
  • CDATA is never a solution
  • Be verbose
  • Be careful with entities
0 comments voice your opinion now!
guideline generate xml xmlwriter suggestion

blog comments powered by Disqus

Similar Posts

DevShed: Working with Multiple Document Nodes with the DOM XML Extension in PHP 5

Maarten Balliauw's Blog: OpenXML in Healthcare in PHP

Riff Blog: Multiple entries with Zend_Config_XML

Michael Kimsal's Blog: Suggested steps for launching a new web project Creating a PHP Settings Class

Community Events

Don't see your event here?
Let us know!

community performance voicesoftheelephpant conference api podcast introduction symfony2 application language example php7 release opinion part2 interview configure series framework laravel

All content copyright, 2015 :: - Powered by the Solar PHP Framework