Return XML of Post Metadata
All of my posts in one category (i.e. Location) have two custom fields: latitude and longitude. I would like to return an XML or JSON of all those posts (title, latitude, longitude) for use as Google Maps markers.
I can't simply call out to a stand-alone php file to return my data as I would like to access my data through $wpdb.
What is the best solution?