Examples/src/main/java/org/openestate/io/examples/OpenImmoReadingExample.java
protected static void printToConsole(OpenImmoFeedbackDocument doc) throws JAXBException {
        LOGGER.info("> process feedback document in version "
                + doc.getDocumentVersion());

        OpenimmoFeedback feedback = doc.toObject();
        for (Objekt objekt : feedback.getObjekt()) {
            // get object nr
            String objectNr = (!StringUtils.isBlank(objekt.getOobjId())) ?
                    objekt.getOobjId().trim() : "???";

            // get object title
            String objectTitle = (!StringUtils.isBlank(objekt.getBezeichnung())) ?
                    objekt.getBezeichnung().trim() : "???";

            LOGGER.info(">> feedback for object '" + objectNr + "' "
                    + "with title '" + objectTitle + "'");
        }
    }
protected static void printToConsole(OpenImmoFeedbackDocument doc) throws JAXBException {
        LOGGER.info("> process feedback document in version "
                + doc.getDocumentVersion());

        OpenimmoFeedback feedback = doc.toObject();
        for (Objekt objekt : feedback.getObjekt()) {
            // get object nr
            String objectNr = (!StringUtils.isBlank(objekt.getOobjId())) ?
                    objekt.getOobjId().trim() : "???";

            // get object title
            String objectTitle = (!StringUtils.isBlank(objekt.getBezeichnung())) ?
                    objekt.getBezeichnung().trim() : "???";

            LOGGER.info(">> feedback for object '" + objectNr + "' "
                    + "with title '" + objectTitle + "'");
        }
    }
Print some content of an {@link OpenImmoFeedbackDocument} to console.

@param doc the document to process
@throws JAXBException if XML conversion into Java objects failed