toXml unnecessarily encodes text nodes

-Text value found within text nodes only needs to encode the & and <
symbols to their respective character codes.
-Test case indicates that single quote (and other allowed symbols) will
not be encoded for text node values
Unnecessary whitespace change