I can't understand why you would think this is necessary. It seems like the kind of data that could be modeled easily in a relational database.
That said, if you want to format it like xml, why not put an <?xml version="1.0"?> at the top and parse it with ns_xml or tDOM?