Page 1 of 1

Loading XML

Posted: Wed Jul 08, 2009 1:26 am
by CaptainCheerios
Does anyone know how to load XML onto the DS, or a way to just read in data from an outside file I would greatly appreciate the help.

Re: Loading XML

Posted: Thu Jul 09, 2009 4:38 am
by WinterMute
For accessing files on SD have a look at the libfat examples, it's basically a matter of

Code: Select all

#include <fat.h>

int main(int argc, char **argv) {
  if ( fatInitDefault() ){

    ...
    code uses stdio ( fopen, fread, fwrite etc )
    ...

  }
}
As for xml, I've uploaded an arm build of mxml which I'll link to later - the SF file release pages are being a bit slow atm.