Wednesday, June 22, 2005

Generating xml in php


I was looking for a way to generate xml from php, and I found three different ways.


  1. XmlWriter class.  It looks like Simon Willison re-implemented the python version of this class in php.

  2. Simple output functions. This looks like the simplest way, without any external dependancies.

  3. DOM XML extension of php.  I am not sure how robust these are.

No comments:

Post a Comment

Mastering Matter: Seamless Smart Home Integration with Network Segmentation

I’ve been intrigued by the idea of integrating devices with Matter for some time. My smart home setup includes a pair of SwitchBot Hubs, som...