diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java index 91659fa528b..ff8f25d2ad6 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java @@ -61,6 +61,7 @@ public class Jaxp { private static final DocumentBuilderFactory namespceUnawareFactory = DocumentBuilderFactory.newInstance(); private static final DocumentBuilderFactory NonDeferredNamespceUnawareFactory = DocumentBuilderFactory.newInstance(); private static final DocumentBuilderFactory namespceAwareFactory = DocumentBuilderFactory.newInstance(); + static { namespceAwareFactory.setNamespaceAware(true); } @@ -662,7 +663,8 @@ public class Jaxp { } String value = attrNode.getValue(); - if (Strings.isValid(name, value) || (Strings.isValid(name) && value != null && value.isEmpty() && isEmptyValueValid)) { + if (Strings.isValid(name, + value) || Strings.isValid(name) && value != null && value.isEmpty() && isEmptyValueValid) { if (prefix != null && namespace != null) { writer.writeAttribute(prefix, namespace, name, value); } else if (namespace != null) { |