diff --git a/src/fr/devinsy/xidyn/Presenter.java b/src/fr/devinsy/xidyn/Presenter.java index 49fd195..9083dd2 100644 --- a/src/fr/devinsy/xidyn/Presenter.java +++ b/src/fr/devinsy/xidyn/Presenter.java @@ -442,7 +442,7 @@ public class Presenter // Is there anything to do? if (node != null) { - logger.debug("nodeName=" + node.getNodeName()); + logger.debug("nodeName=[{}]", node.getNodeName()); // Find the name attribute value. String name; name = getClassAttributeValue(node); @@ -478,7 +478,7 @@ public class Presenter case Node.ELEMENT_NODE: { - logger.debug("case Node.ELEMENT_NODE"); + logger.debug("case Node.ELEMENT_NODE [{}]", node.getNodeName()); NamedNodeMap attrs = node.getAttributes(); Node idAttr = attrs.getNamedItem("id"); @@ -807,7 +807,7 @@ public class Presenter */ static void processElementBasically(final Writer result, final Node node, final TagDataListById datas, final String suffix) throws Exception { - logger.debug("processElementBasically - started"); + logger.debug("processElementBasically - started [{}]", node.getNodeName()); // Open the tag. result.append('<'); @@ -819,7 +819,7 @@ public class Presenter result.append(processAttributes(node.getAttributes(), null, suffix)); // - if (node.getChildNodes() == null) + if ((node.getChildNodes() == null) || (node.getChildNodes().getLength() == 0)) { result.append(" />"); }