Skip to Content.
Sympa Menu

notify-dpml - r1168 - trunk/main/transit/core/src/main/net/dpml/transit/util

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1168 - trunk/main/transit/core/src/main/net/dpml/transit/util
  • Date: Wed, 8 Mar 2006 11:17:17 +0100

Author: mcconnell
Date: 2006-03-08 11:17:16 +0100 (Wed, 08 Mar 2006)
New Revision: 1168

Modified:
trunk/main/transit/core/src/main/net/dpml/transit/util/ElementHelper.java
Log:
correct error in child element resolution

Modified:
trunk/main/transit/core/src/main/net/dpml/transit/util/ElementHelper.java
===================================================================
--- trunk/main/transit/core/src/main/net/dpml/transit/util/ElementHelper.java
2006-03-05 11:48:22 UTC (rev 1167)
+++ trunk/main/transit/core/src/main/net/dpml/transit/util/ElementHelper.java
2006-03-08 10:17:16 UTC (rev 1168)
@@ -141,15 +141,14 @@
{
return new Element[0];
}
- final NodeList list = root.getElementsByTagName( name );
- final int n = list.getLength();
+ Element[] children = getChildren( root );
final ArrayList result = new ArrayList();
- for( int i=0; i < n; i++ )
+ for( int i=0; i<children.length ; i++ )
{
- final Node item = list.item( i );
- if( item instanceof Element )
+ final Element child = children[i];
+ if( name.equals( child.getTagName() ) )
{
- result.add( item );
+ result.add( child );
}
}
return (Element[]) result.toArray( new Element[0] );




  • r1168 - trunk/main/transit/core/src/main/net/dpml/transit/util, mcconnell at BerliOS, 03/08/2006

Archive powered by MHonArc 2.6.24.

Top of Page