Title: custom XML output
Last modified: August 18, 2016

---

# custom XML output

 *  [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * (@ssdesign)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/custom-xml-output/)
 * Hi,
    I wanted to create custom XML output for wordpress blog I have on my website.
 * I did not want to have a HTML+CSS layout, I wanted to create a Flash Interface.
 * For the same, I wrote a custom theme. At that time, I realsied that to get a 
   complete custom output, I have to edit some files in the wp-includes folder as
   well.
 * For example:
 * in ‘template_functions-general.php’ file, I had to modify the ‘function get_archives_link()’
   function by adding an extra ‘if’ statement:
 * } elseif (‘XML’ == $format) {
    return “<Archive archLink=\”$url\” archTitle=\”
   $text\” />”; }
 * Like this, I had to change a few functins to be able to generate complete valid
   XML from the core code.
 * My question is, can WordPress address this feature in future by adding the ability
   to generate XML output using custom themes?
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [joseelsantos](https://wordpress.org/support/users/joseelsantos/)
 * (@joseelsantos)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/custom-xml-output/#post-316027)
 * This would be really, really fantastic if it was possible without altering the
   core files. It would then make it the only blog / pcms that supported raw xml
   output!
 *  [sadish](https://wordpress.org/support/users/sadish/)
 * (@sadish)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/custom-xml-output/#post-316030)
 * I just want to say, this is a nice feature.
 * can someone post a link, where we can add the suggestion to the wordpress dev
   team. ?
 *  Thread Starter [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * (@ssdesign)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/custom-xml-output/#post-316031)
 * Yes, I am a strong advocate of this and after writing my custom XML output, it
   was so easy to port wordpress to Flash.
 * I am sure others will find alternative usage of haveing a raw XML output.
 * Can we really add this feature? I can share my experience if people are interested.
 *  [joseelsantos](https://wordpress.org/support/users/joseelsantos/)
 * (@joseelsantos)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/custom-xml-output/#post-316035)
 * I think I have found a way to make an XML Theme, the major issue will be that
   all of us have his / her own way of formatting XML, so the way I program this
   will most likeley not fit everyones pocket. However I have made it possible by
   editing existing plugins, combination of numerous of extra scripts, and made 
   it to one plugin-file.
 * Don’t know when it will be finished, but I will let you know!
 *  [joseelsantos](https://wordpress.org/support/users/joseelsantos/)
 * (@joseelsantos)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/custom-xml-output/#post-316036)
 * All of you who are interested of this, please follow my development of this “
   Theme” on my site. I will continuously post updates and snippets from the progress,
   so we all can reach somewhat a unified XML Output!
 * [http://www.team77.se/wp-xml/](http://www.team77.se/wp-xml/)
 *  Thread Starter [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * (@ssdesign)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/custom-xml-output/#post-316050)
 * Hi,
    My Flash-Wordpress project is now in a stable state.
 * [http://www.ssdesigninteractive.com/ssdesign/?p=97](http://www.ssdesigninteractive.com/ssdesign/?p=97)
 * Sourceforge link:
    [http://sourceforge.net/projects/flash-blog](http://sourceforge.net/projects/flash-blog)
 * Let me know if you happen to test it.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 8 months ago](https://wordpress.org/support/topic/custom-xml-output/#post-316051)
 * Making the blog output a custom XML format is fairly straightforward, actually.
   It’s really just a matter of editing your theme to do whatever XML you want. 
   You’d obviously need to clone and then edit some of the existing WordPress functions
   into the functions.php file for your theme (I would recommend using functions.
   php instead of using a plugin, because these functions are likely to be very 
   specific to your theme).
 * However, it seems like it would be better to write your Flash so as to use something
   more standardized, like, say, RSS. Then it could read the existing RSS feed (
   or any RSS feed) and display it as it sees fit.
 *  Thread Starter [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * (@ssdesign)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/custom-xml-output/#post-316052)
 * RSS feeds can populate the first view, but as you navigate, I need to generate
   custom XML for each view. Thats why I used this approach.
 * You are right about functions.php, I just put then in a plugin file, but yes 
   that could have been in functions.php as well.
 * And infact I am using the same approach as you specified and I have created a
   custom theme that outputs only XML.
 * Thanks for your comments 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘custom XML output’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [output](https://wordpress.org/support/topic-tag/output/)
 * [xml](https://wordpress.org/support/topic-tag/xml/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 8 replies
 * 4 participants
 * Last reply from: [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/custom-xml-output/#post-316052)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
