Examples/src/main/java/org/openestate/io/examples/WisItReadingExample.java
protected static void printToConsole(WisItDocument doc) throws JAXBException {
        WIS wis = doc.toObject();

        // process objects
        if (wis.getOBJEKTE() != null) {
            for (ObjectType obj : wis.getOBJEKTE().getOBJEKT()) {
                // get object nr
                String objectNr = StringUtils.trimToNull(obj.getID());
                if (objectNr == null) objectNr = "???";

                // get object description
                String objectInfo = StringUtils.trimToNull(obj.getINFODE());
                if (objectInfo == null) objectInfo = obj.getINFOIT();
                if (objectInfo == null) objectInfo = "???";

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

        // process objects
        if (wis.getOBJEKTE() != null) {
            for (ObjectType obj : wis.getOBJEKTE().getOBJEKT()) {
                // get object nr
                String objectNr = StringUtils.trimToNull(obj.getID());
                if (objectNr == null) objectNr = "???";

                // get object description
                String objectInfo = StringUtils.trimToNull(obj.getINFODE());
                if (objectInfo == null) objectInfo = obj.getINFOIT();
                if (objectInfo == null) objectInfo = "???";

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

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