I see. Well, that's way better, that it's a standard notation (I never used it before, good to know). Looks like even
rosegarden supports it (for exporting at least). So the question is, how fully does PS support MusicXML and what are the limitations?
There should be a plentiful amount of tools to autoident XML. No really a need to build it into the exporter. For example, on Debian / LMDE / Ubuntu do:
sudo apt-get install geany geany-plugins geany-plugin-addons
And open the XML in geany. Enable XML pretty printer plugin, and use it from the tools menu. That's it. I'm sure there are more tools for it around.