[XML] Keeping XML formatted after sendAndLoad

Hi to all,

I’m sorry, I read the solution to this somewhere on Kirupa but I can’t find it again.

Can anyone tell me a way to keep an XML file’s formatting that is being pulled into Flash and edited. Whenever my program sendAndLoads an external XML file it removes all the formatting and turns into one big block of text so I have to reformat it when I want to edit it in Dreamweaver.

Cheers for any help,

ben