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.