diff options
author | Keiron Liddle <keiron@apache.org> | 2001-06-21 13:27:11 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-06-21 13:27:11 +0000 |
commit | 652addebbc5360267f213688bda281407e009774 (patch) | |
tree | 5c62fdb37b199bdd8f6320f06ec3a014b16f34c9 /src | |
parent | c212005562b93948da33caa49b403f42dd751814 (diff) | |
download | xmlgraphics-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.java | 8 |
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( |