News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
Guidelines for generating XML
July 15, 2010 @ 11:50:44

On DZone.com 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

Havard Eide's Blog: phpm (a vim PHP function lookup tool)

PHPBuilder.com: Parsing XML with the DOM Extension for PHP 5

NETTUTS.com: Build a Login and Registration System with XML

Greg Beaver's Blog: PhpDocumentor 1.3.0 stable is released

Make Me Pulse Blog: Serialize and Unserialize SimpleXML in php


Community Events











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


release language install hack hhvm symfony2 composer component security podcast application framework code introduction overview facebook opinion example unittest package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework