From 81ddbec416d4a441189b082b966871c635d10a02 Mon Sep 17 00:00:00 2001 From: lqdev Date: Sat, 28 Apr 2018 18:45:22 +0200 Subject: [PATCH] added javadoc comment for XML#trim() --- core/src/processing/data/XML.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/processing/data/XML.java b/core/src/processing/data/XML.java index 12b35cdbd..49880c888 100644 --- a/core/src/processing/data/XML.java +++ b/core/src/processing/data/XML.java @@ -594,7 +594,14 @@ public class XML implements Serializable { children = null; // TODO not efficient } - + /** + * Removes whitespace nodes. + * Those whitespace nodes are required to reconstruct the original XML's spacing and indentation. + * If you call this and use saveXML() your original spacing will be gone. + * + * @nowebref + * @brief Removes whitespace nodes + */ public void trim() { try { XPathFactory xpathFactory = XPathFactory.newInstance();