aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-06-21 13:27:11 +0000
committerKeiron Liddle <keiron@apache.org>2001-06-21 13:27:11 +0000
commit652addebbc5360267f213688bda281407e009774 (patch)
tree5c62fdb37b199bdd8f6320f06ec3a014b16f34c9 /src
parentc212005562b93948da33caa49b403f42dd751814 (diff)
downloadxmlgraphics-fop-652addebbc5360267f213688bda281407e009774.tar.gz
xmlgraphics-fop-652addebbc5360267f213688bda281407e009774.zip
gets the root element properly
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194301 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/tools/TestConverter.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/apache/fop/tools/TestConverter.java b/src/org/apache/fop/tools/TestConverter.java
index 73396aa22..fcc402ed7 100644
--- a/src/org/apache/fop/tools/TestConverter.java
+++ b/src/org/apache/fop/tools/TestConverter.java
@@ -110,13 +110,9 @@ public class TestConverter {
if (suitelist.getLength() == 0) {
return differ;
}
+
Node testsuite = null;
- for (int count = 0; count < suitelist.getLength(); count++) {
- Node node = suitelist.item(count);
- if (node.getNodeName().equals("testsuite")) {
- testsuite = node;
- }
- }
+ testsuite = doc.getDocumentElement();
if (testsuite.hasAttributes()) {
String profile = testsuite.getAttributes().getNamedItem(