Convert XML to CSV with PHP, with different fields in some itens
问题 I want to convert a XML to a CSV. That's OK, but in some itens, I have extra fields or less fields than other itens. A example of my feed is: EDIT: The top of the XML is: <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> <channel> <item> Item with less fields: <item> <title> <![CDATA[ Resident Evil Revelations 2: Raid Mode: Throwback Map Pack ]]> </title> <link> https://www.nuuvem.com/item/resident-evil-revelations-2-raid-mode-throwback-map-pack </link> <description> <![CDATA[ Novas