Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJared Burns2005-02-10 17:14:26 -0500
committerJared Burns2005-02-10 17:14:26 -0500
commit0de0dc405715c295c241a6dbe29b2dd75e799e70 (patch)
tree421c297c4df2a38edfca426afb587ff4881c0110 /org.eclipse.core.variables
parenta738dbc45deb7282ebbcbd9a5a5bc5ae3a5d7c6e (diff)
downloadeclipse.platform.debug-0de0dc405715c295c241a6dbe29b2dd75e799e70.tar.gz
eclipse.platform.debug-0de0dc405715c295c241a6dbe29b2dd75e799e70.tar.xz
eclipse.platform.debug-0de0dc405715c295c241a6dbe29b2dd75e799e70.zip
Bug 73397 - Setting ErrorHandlers for XML parsing
Diffstat (limited to 'org.eclipse.core.variables')
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
index b29ce4e9c..f4d6742ba 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/StringVariableManager.java
@@ -51,6 +51,7 @@ import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
/**
* Singleton string variable manager.
@@ -233,6 +234,7 @@ public class StringVariableManager implements IStringVariableManager {
try {
ByteArrayInputStream stream = new ByteArrayInputStream(variablesString.getBytes("UTF-8")); //$NON-NLS-1$
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+ parser.setErrorHandler(new DefaultHandler());
root = parser.parse(stream).getDocumentElement();
} catch (UnsupportedEncodingException e) {
ex = e;

Back to the top