Generate an XML file out of a PHP loop
问题 I am building a livesearch for a FAQ and in order to do so, I need an XML document where the livesearch suggestions will be stored. The problem is that the FAQ will be updated often and I don't want to have to touch the code every time. Therefore, I am trying to make a PHP file that generates a new XML file when we open it. Since there are many FAQ items in different folders, I need that the script automatically finds all the FAQ items in a certain directories. The FAQ items are stored in TXT