[DZIP-6] Sub Entries with the same Name can't be selected Created: 19/Sep/16 Updated: 20/Sep/16
|Reporter:||Benjamin Peter||Assignee:||Alex Miller|
Leiningen 2.7.0 on Java 1.8.0_91 Java HotSpot(TM) 64-Bit Server VM
I want to select the content of an XML element named "Group" which itself is in an element named "Group" using xml-zip/xml1. Instead of returning the content of the inner "Group" the outer "Group" element matches. The approach of how to select this does not work and I suspect this might be a defect.
Please see the minimal example:
Leiningen project with unit-tests as attachment. Run: lein test
|Comment by Benjamin Peter [ 20/Sep/16 2:41 PM ]|
I found a "workaround" as you can see below and in zip-xml-bug-descent.tgz
It seems the first expression in tag= matching the element itself in the or expression is the problem in my case. I suspect it can be used to select the root element. Is there any other need for it?
Maybe there should be a self predicate instead?