OpenImmo/src/main/java/org/openestate/io/openimmo/converters/OpenImmo_1_2_7b.java
protected void downgradeEnergiepassJahrgangElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben/io:energiepass/io:jahrgang",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element node = (Element) item;
            String value = StringUtils.trimToNull(node.getTextContent());
            if (value == null || value.equalsIgnoreCase("bei_besichtigung")) {
                Element parentNode = (Element) node.getParentNode();
                parentNode.removeChild(node);
            }
        }
    }
protected void downgradeEnergiepassJahrgangElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:openimmo/io:anbieter/io:immobilie/io:zustand_angaben/io:energiepass/io:jahrgang",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element node = (Element) item;
            String value = StringUtils.trimToNull(node.getTextContent());
            if (value == null || value.equalsIgnoreCase("bei_besichtigung")) {
                Element parentNode = (Element) node.getParentNode();
                parentNode.removeChild(node);
            }
        }
    }
Downgrade &lt;jahrgang&gt; elements in &lt;energiepass&gt;
to OpenImmo 1.2.7.
<p>
The value "bei_besichtigung" of &lt;jahrgang&gt; elements in
&lt;energiepass&gt; is not available in OpenImmo 1.2.7.

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