Create XML files on post edit screen
If you’re using XML to send Ajax requests, then WP has something built in: $response = new WP_Ajax_Response(); $response->add( array( // This is the parent elements name ‘what’ => ‘xml_parent_el’ // ‘data’ can only pass CDATA ,’data’ => $foo // ‘supplemental’ can only pass elements with a unique name ,’supplemental’ => $bar ) ); $response->send(); … Read more