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:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
(zip-xml/xml1-> root :Root :Group :Group :Name zip-xml/text)
Leiningen project with unit-tests as attachment. Run: lein test
$ lein test
lein test :only zip-xml-bug.core-test/parsing-group-elements
FAIL in (parsing-group-elements) (core_test.clj:34)
selecting the name of inner
expected: (= "Inner" (zip-xml/xml1-> root :Root :Group :Group :Name zip-xml/text))
actual: (not (= "Inner" "Outer"))
Ran 1 tests containing 2 assertions.
1 failures, 0 errors.