Skip to content

Commit 6e8f4e5

Browse files
author
mgricken
committed
Adapted XMLConfig unit test to work with both 1.5 and 1.6.
M src/edu/rice/cs/util/XMLConfigTest.java M src/edu/rice/cs/util/XMLConfig.java git-svn-id: file:///tmp/test-svn/trunk@4328 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent f21f60b commit 6e8f4e5

2 files changed

Lines changed: 404 additions & 388 deletions

File tree

drjava/src/edu/rice/cs/util/XMLConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public XMLConfig() {
8989
try {
9090
DocumentBuilder builder = factory.newDocumentBuilder();
9191
_document = builder.newDocument(); // Create from whole cloth
92+
_document.setXmlStandalone(true);
9293
}
9394
catch(ParserConfigurationException e) {
9495
e.printStackTrace();
@@ -121,6 +122,7 @@ private void init(InputSource is) {
121122
try {
122123
builder = factory.newDocumentBuilder();
123124
_document = builder.parse(is);
125+
_document.setXmlStandalone(true);
124126
}
125127
catch(Exception e) {
126128
throw new XMLConfigException("Error in ctor", e);

0 commit comments

Comments
 (0)