OpenImmo/src/main/java/org/openestate/io/openimmo/converters/OpenImmo_1_2_4.java
@SuppressWarnings("Duplicates")
    protected void removeFeedbackInteressentChildElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:openimmo_feedback/io:objekt/io:interessent",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element parentNode = (Element) item;
            boolean bevorzugtPassed = false;
            boolean wunschPassed = false;

            List childNodes = XmlUtils.newXPath(
                    "io:bevorzugt", doc).selectNodes(parentNode);
            for (Object childItem : childNodes) {
                Element node = (Element) childItem;
                if (!bevorzugtPassed) bevorzugtPassed = true;
                else parentNode.removeChild(node);
            }

            childNodes = XmlUtils.newXPath(
                    "io:wunsch", doc).selectNodes(parentNode);
            for (Object childItem : childNodes) {
                Element node = (Element) childItem;
                if (!wunschPassed) wunschPassed = true;
                else parentNode.removeChild(node);
            }
        }
    }
@SuppressWarnings("Duplicates")
    protected void removeFeedbackInteressentChildElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:openimmo_feedback/io:objekt/io:interessent",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element parentNode = (Element) item;
            boolean bevorzugtPassed = false;
            boolean wunschPassed = false;

            List childNodes = XmlUtils.newXPath(
                    "io:bevorzugt", doc).selectNodes(parentNode);
            for (Object childItem : childNodes) {
                Element node = (Element) childItem;
                if (!bevorzugtPassed) bevorzugtPassed = true;
                else parentNode.removeChild(node);
            }

            childNodes = XmlUtils.newXPath(
                    "io:wunsch", doc).selectNodes(parentNode);
            for (Object childItem : childNodes) {
                Element node = (Element) childItem;
                if (!wunschPassed) wunschPassed = true;
                else parentNode.removeChild(node);
            }
        }
    }
@ SuppressWarnings ( "Duplicates" ) protected void removeFeedbackInteressentChildElements ( Document doc ) throws JaxenException { List nodes = XmlUtils . newXPath ( "/io:openimmo_feedback/io:objekt/io:interessent" , doc ) . selectNodes ( doc ) ; for ( Object item : nodes ) { Element parentNode = ( Element ) item ; boolean bevorzugtPassed = false ; boolean wunschPassed = false ; List childNodes = XmlUtils . newXPath ( "io:bevorzugt" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Element node = ( Element ) childItem ; if ( ! bevorzugtPassed ) bevorzugtPassed = true ; else parentNode . removeChild ( node ) ; } childNodes = XmlUtils . newXPath ( "io:wunsch" , doc ) . selectNodes ( parentNode ) ; for ( Object childItem : childNodes ) { Element node = ( Element ) childItem ; if ( ! wunschPassed ) wunschPassed = true ; else parentNode . removeChild ( node ) ; } } }
Remove unsupported children from all &lt;interessent&gt; elements in
feedback XML.
<p>
OpenImmo 1.2.3 does not support more then one &lt;bevorzugt&gt;,
&lt;wunsch&gt; elements in feedback XML.

@param doc OpenImmo document in version 1.2.4
@throws JaxenException if xpath evaluation failed
Remove unsupported children from all &lt ; interessent&gt ; elements in feedback XML . <p > OpenImmo 1 . 2 . 3 does not support more then one &lt ; bevorzugt&gt ; &lt ; wunsch&gt ; elements in feedback XML .