OpenImmo/src/main/java/org/openestate/io/openimmo/converters/OpenImmo_1_2_7.java
protected void removeMultipleEnergiepassElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element parentNode = (Element) item;
            List childNodes = XmlUtils.newXPath("io:energiepass", doc)
                    .selectNodes(parentNode);
            if (childNodes.size() < 2) continue;
            for (int j = 1; j < childNodes.size(); j++) {
                parentNode.removeChild((Node) childNodes.get(j));
            }
        }
    }
protected void removeMultipleEnergiepassElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element parentNode = (Element) item;
            List childNodes = XmlUtils.newXPath("io:energiepass", doc)
                    .selectNodes(parentNode);
            if (childNodes.size() < 2) continue;
            for (int j = 1; j < childNodes.size(); j++) {
                parentNode.removeChild((Node) childNodes.get(j));
            }
        }
    }
Only use one &lt;energiepass&gt; element for each &lt;immobilie&gt;.
<p>
OpenImmo 1.2.6 does not allow more then one &lt;energiepass&gt; element
for each &lt;immobilie&gt; (maxOccurs=1). Odd &lt;energiepass&gt; elements
are removed by this function.

@param doc OpenImmo document in version 1.2.7
@throws JaxenException if xpath evaluation failed