Fix up all file headers.
[jSite.git] / src / de / todesbaum / util / xml / SimpleXML.java
index c49f555..8351581 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * jSite - SimpleXML.java - Copyright © 2006–2012 David Roden
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
@@ -321,7 +323,7 @@ public class SimpleXML {
                NodeList childNodes = document.getChildNodes();
                for (int childIndex = 0, childCount = childNodes.getLength(); childIndex < childCount; childIndex++) {
                        Node childNode = childNodes.item(childIndex);
-                       if ((childNode.getChildNodes().getLength() == 1) && (childNode.getFirstChild().getNodeName().equals("#text")) /*&& (childNode.getFirstChild().getNodeValue().trim().length() != 0)*/) {
+                       if ((childNode.getChildNodes().getLength() == 1) && (childNode.getFirstChild().getNodeName().equals("#text"))) {
                                xmlDocument.append(childNode.getNodeName(), childNode.getFirstChild().getNodeValue());
                        } else {
                                if (!childNode.getNodeName().equals("#text") || (childNode.getChildNodes().getLength() != 0)) {