PDA

View Full Version : formating XML


Hambo
07-20-2007, 10:39 AM
Hi,
im creating some xml form my flash movie and using fscommand, passing it back to the html page via javascript and displaying the xml in a textarea. Works fine except the xml is displayed in 1 continuous line rather than separate lines for each node (ie readable ;)

i would like it to be formated makeing it easier to read, does anyone know how to do this.

Thanks
Hambo

myth
08-01-2007, 03:25 PM
would it help if you didn't ignore the whitespace? i'm just thinking out loud...

thatblokemike
08-01-2007, 04:39 PM
\n