Examples/src/main/java/org/openestate/io/examples/FilemakerReadingExample.java
protected static void printToConsole(FilemakerResultDocument doc) throws JAXBException {
        LOGGER.info("> process result document");
        FMPXMLRESULT result = doc.toObject();

        LOGGER.info("> error code       : " + result.getERRORCODE());
        if (result.getPRODUCT() != null) {
            LOGGER.info("> product name     : " + result.getPRODUCT().getNAME());
            LOGGER.info("> product version  : " + result.getPRODUCT().getVERSION());
            LOGGER.info("> product build    : " + result.getPRODUCT().getBUILD());
        }
        if (result.getDATABASE() != null) {
            LOGGER.info("> database name    : " + result.getDATABASE().getNAME());
            LOGGER.info("> database layout  : " + result.getDATABASE().getLAYOUT());
            LOGGER.info("> database date    : " + result.getDATABASE().getDATEFORMAT());
            LOGGER.info("> database time    : " + result.getDATABASE().getTIMEFORMAT());
            LOGGER.info("> database records : " + result.getDATABASE().getRECORDS());
        }
        if (result.getMETADATA() != null) {
            for (MetaDataType.FIELD field : result.getMETADATA().getFIELD()) {
                LOGGER.info("> database field   : " + field.getNAME());
                LOGGER.info(">> type : " + field.getTYPE());
                LOGGER.info(">> max repeat : " + field.getMAXREPEAT());
            }
        }
        if (result.getRESULTSET() != null) {
            LOGGER.info("> result set found  : " + result.getRESULTSET().getFOUND());
            for (ResultSetType.ROW row : result.getRESULTSET().getROW()) {
                LOGGER.info("> result set row    : " + row.getRECORDID() + " / " + row.getMODID());
                for (ResultSetType.ROW.COL col : row.getCOL()) {
                    for (String data : col.getDATA()) {
                        LOGGER.info(">> " + data);
                    }
                }
            }
        }
    }
protected static void printToConsole(FilemakerResultDocument doc) throws JAXBException {
        LOGGER.info("> process result document");
        FMPXMLRESULT result = doc.toObject();

        LOGGER.info("> error code       : " + result.getERRORCODE());
        if (result.getPRODUCT() != null) {
            LOGGER.info("> product name     : " + result.getPRODUCT().getNAME());
            LOGGER.info("> product version  : " + result.getPRODUCT().getVERSION());
            LOGGER.info("> product build    : " + result.getPRODUCT().getBUILD());
        }
        if (result.getDATABASE() != null) {
            LOGGER.info("> database name    : " + result.getDATABASE().getNAME());
            LOGGER.info("> database layout  : " + result.getDATABASE().getLAYOUT());
            LOGGER.info("> database date    : " + result.getDATABASE().getDATEFORMAT());
            LOGGER.info("> database time    : " + result.getDATABASE().getTIMEFORMAT());
            LOGGER.info("> database records : " + result.getDATABASE().getRECORDS());
        }
        if (result.getMETADATA() != null) {
            for (MetaDataType.FIELD field : result.getMETADATA().getFIELD()) {
                LOGGER.info("> database field   : " + field.getNAME());
                LOGGER.info(">> type : " + field.getTYPE());
                LOGGER.info(">> max repeat : " + field.getMAXREPEAT());
            }
        }
        if (result.getRESULTSET() != null) {
            LOGGER.info("> result set found  : " + result.getRESULTSET().getFOUND());
            for (ResultSetType.ROW row : result.getRESULTSET().getROW()) {
                LOGGER.info("> result set row    : " + row.getRECORDID() + " / " + row.getMODID());
                for (ResultSetType.ROW.COL col : row.getCOL()) {
                    for (String data : col.getDATA()) {
                        LOGGER.info(">> " + data);
                    }
                }
            }
        }
    }
Print some content of a {@link FilemakerResultDocument} to console.

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