keiron      01/06/21 06:27:12

  Modified:    src/org/apache/fop/tools TestConverter.java
  Log:
  gets the root element properly
  
  Revision  Changes    Path
  1.4       +2 -6      xml-fop/src/org/apache/fop/tools/TestConverter.java
  
  Index: TestConverter.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/tools/TestConverter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestConverter.java        2001/06/18 11:33:33     1.3
  +++ TestConverter.java        2001/06/21 13:27:11     1.4
  @@ -110,13 +110,9 @@
               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(
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to