> if(getName().equalsIgnoreCase(eltTmp.getName())){
> i++;
I'd personally just use equals(), since XML tags are case-sensitive.
This could produce bogus paths:
<a>
<b/>
<B/>
</a>
One is /a/b[1], while the other is /a/B[1]. Neither
is /a/b[2] or /a/B[2].
-bob
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev
- [dom4j-dev] getPath() Emmanuel Dupouy
- Re: [dom4j-dev] getPath() bob mcwhirter
- Re: [dom4j-dev] getPath() Amy Lewis
- RE: [dom4j-dev] getPath() Emmanuel Dupouy
- Re: [dom4j-dev] getPath() James Strachan
- Re: [dom4j-dev] getPath() Amy Lewis
- RE: [dom4j-dev] getPath() Emmanuel Dupouy
- RE: [dom4j-dev] getPath() Mike Skells \(ebizz-consulting\)
- Re: [dom4j-dev] getPath() Amy Lewis
- Re: [dom4j-dev] getPath() James Strachan
- Re: [dom4j-dev] getPath() James Strachan
