Replacing this CSV parser with an XML parser