News Feed
Jobs Feed
Sections




News Archive
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

Community News: Livedocs XMLWriter Entry Updated

Stuart Herbert's Blog: Using SimpleXML To Parse RSS Feeds

Make Me Pulse Blog: Serialize and Unserialize SimpleXML in php

Internet Resources Blog: 10 Principles of the PHP Masters

Zend Developer Zone: Get involved in the PHP community: 5 easy steps that take less than 5 min. each


Community Events











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


opinion introduction development code example podcast phpunit series tool language unittest application release interview testing framework functional conference zendframework2 community

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