No, the PHP script should make a list.xml file. .txt is so old and old-fashioned.
XML is so over and over-rated, though. If you need the full power of XML, why not use JSON, which is much more compact? Even JSON might be overkill, though. Assuming all programs will have the same meta-data, CSV...