This is a sample XML file that captures all the data required to setup a discussion forum in Moodle; see Brent/eXe_excursions/Moodle_Discussion_Forum_iDevice for more information on how we think this can be implemented inside Moodle.
<?xml version="1.0" ?> <forums> <forum name="test1"> <type></type> <introduction></introduction> <studentpost></studentpost> <subscription></subscription> <tracking></tracking> <attachmentsize></attachmentsize> <ratings>default to off</ratings> <groupmode></groupmode> <visible></visible> </forum> <forum name="test2"> <type></type> <introduction></introduction> <studentpost></studentpost> <subscription></subscription> <tracking></tracking> <attachmentsize></attachmentsize> <ratings>default to off</ratings> <groupmode></groupmode> <visible></visible> </forum> </forums> <discussions> <discussion id="test1"> <subject></subject> <message></message> <subscription></subscription> </discussion> <discussion id="test2"> <subject></subject> <message></message> <subscription></subscription> </discussion> </discussions>