keepWhitespace

Type: Boolean

The keepWhitespace property of the JadeXMLDocument class specifies whether extra whitespace between adjacent tags is discarded during parsing in XML documents. As Jade assumes that the XML document contains data, this property is set to false by default. This optimization improves parsing performance and reduces the size of the object tree because the extra whitespace does not need to be stored as text nodes.

If the extra whitespace is significant and this property is set to true, you should set the indentString property to null ("") to turn off the automatic indentation when writing the document.