From 7b731a9f93812873b5a4e473edf8a1748209317e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 2 Jul 2008 20:23:25 +0200 Subject: [PATCH] more whitespace fixes --- src/de/todesbaum/util/xml/SimpleXML.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/de/todesbaum/util/xml/SimpleXML.java b/src/de/todesbaum/util/xml/SimpleXML.java index ae0a487..c49f555 100644 --- a/src/de/todesbaum/util/xml/SimpleXML.java +++ b/src/de/todesbaum/util/xml/SimpleXML.java @@ -98,6 +98,7 @@ public class SimpleXML { * tree pretty fast. * *
+	 *
 	 * SimpleXML deepNode = topNode.getNodes(new String[] { "person", "address", "number" });
 	 * 
* @@ -107,7 +108,7 @@ public class SimpleXML { */ public SimpleXML getNode(String[] nodeNames) { SimpleXML node = this; - for (String nodeName: nodeNames) { + for (String nodeName : nodeNames) { node = node.getNode(nodeName); } return node; @@ -133,7 +134,7 @@ public class SimpleXML { */ public SimpleXML[] getNodes(String nodeName) { List resultList = new ArrayList(); - for (SimpleXML child: children) { + for (SimpleXML child : children) { if ((nodeName == null) || child.name.equals(nodeName)) { resultList.add(child); } @@ -146,6 +147,7 @@ public class SimpleXML { * With this method you can create deep structures very fast. * *
+	 *
 	 * SimpleXML mouseNode = topNode.append("computer").append("bus").append("usb").append("mouse");
 	 * 
* @@ -279,7 +281,7 @@ public class SimpleXML { * The element to attach this node's children to */ private void addChildren(Element rootElement) { - for (SimpleXML child: children) { + for (SimpleXML child : children) { Element childElement = rootElement.getOwnerDocument().createElement(child.name); rootElement.appendChild(childElement); if (child.value != null) { -- 2.7.4