Almost any programming language/compiler/IDE can work with XML. You just need a lib for that. There are good ones for FPC I believe.

A more important question is, can FPC read/write to files on the DS. I'm not sure, because I don't know anything about the DS, but I assume that that is possible too.