Some of you might have heard or used my json/xml/csv/xlsx to json/xml/csv/xlsx conversion library called craur.
It advocates a simple api for any of those formats, instead of simplexmlloadstring or other php built in functions, which are usually not consistent when it comes to throwing exceptions or warnings.
Today we'll look into an example, how to use craur to generate and parse a sitemap.xml.