Parse mapnik xml into a json-able dictionary, then convert dictionary to style rules