Examples/src/main/java/org/openestate/io/examples/KyeroReadingExample.java
protected static void printToConsole(KyeroDocument doc) throws JAXBException {
        Root root = doc.toObject();

        // process properties in the document
        for (PropertyType obj : root.getProperty()) {
            // get object nr
            String objectNr = (obj.getId() != null) ?
                    obj.getId() : "???";

            // get object description
            String objectInfo = null;
            if (obj.getDesc() != null) {
                objectInfo = StringUtils.trimToNull(obj.getDesc().getEn());
                if (objectInfo == null)
                    objectInfo = StringUtils.trimToNull(obj.getDesc().getDe());
                if (objectInfo == null)
                    objectInfo = StringUtils.trimToNull(obj.getDesc().getEs());
            }

            // print object information to console
            LOGGER.info("> found object '" + objectNr + "' "
                    + "with title '" + objectInfo + "'");
        }
    }
protected static void printToConsole(KyeroDocument doc) throws JAXBException {
        Root root = doc.toObject();

        // process properties in the document
        for (PropertyType obj : root.getProperty()) {
            // get object nr
            String objectNr = (obj.getId() != null) ?
                    obj.getId() : "???";

            // get object description
            String objectInfo = null;
            if (obj.getDesc() != null) {
                objectInfo = StringUtils.trimToNull(obj.getDesc().getEn());
                if (objectInfo == null)
                    objectInfo = StringUtils.trimToNull(obj.getDesc().getDe());
                if (objectInfo == null)
                    objectInfo = StringUtils.trimToNull(obj.getDesc().getEs());
            }

            // print object information to console
            LOGGER.info("> found object '" + objectNr + "' "
                    + "with title '" + objectInfo + "'");
        }
    }
Print some content of a {@link KyeroDocument} to console.

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