what's meaning of saveXML("pretty")?

Avatar

Avatar

ChromeUser

Avatar

ChromeUser

ChromeUser

30-10-2008

A simple question,but I don't understand.

I check the LC JavaScript Reference,and find there is no parameter with saveXML,but I find a lot of people using saveXML with parameter "pretty"?



what does this parameter mean?



Best Regards,

Jasper

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

30-10-2008

The saveXML method allows you to point to a node in a DOM (data, layout or form) and copy a string that represents the node and all children. It allows the developer to see the structure and the contents of the XML. Because it is a string it has no CR LF at the end of each line. The "pretty" option puts in the CR LF chars to make it easier to read.
Highlighted

Avatar

Avatar

ChromeUser

Avatar

ChromeUser

ChromeUser

30-10-2008

Oh yes,thanks for your reply.