Package org.jdom.output

Examples of org.jdom.output.XMLOutputter.outputString()


        logger.fatal(e.getMessage(), e);
        return;
      }
      try {
        FileOutputStream eoFileOS = new FileOutputStream(eoFile);
        eoFileOS.write(xmlOut.outputString(eoDocument).getBytes());
        eoFileOS.close();
      }
      catch (Exception e) {
        logger.fatal("Exception writing the file " + fileName);
        logger.fatal(e.getMessage(), e);
View Full Code Here


            XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
            logger.info("\n\nYTask::t_completing " +
                    "\n\tstatus: transforming output for net" +
                    "\n\tforNetVar = " + forNetVar +
                    "\n\tquery = " + query +
                    "\n\tover data = " + out.outputString(data).trim() +
                    "\n\tresulting data = " + out.outputString(resultElem).trim());
        }
    }

    private void generateCompletingReport1(String query, Document rawDecompositionData, Element queryResultElement) {
View Full Code Here

            logger.info("\n\nYTask::t_completing " +
                    "\n\tstatus: transforming output for net" +
                    "\n\tforNetVar = " + forNetVar +
                    "\n\tquery = " + query +
                    "\n\tover data = " + out.outputString(data).trim() +
                    "\n\tresulting data = " + out.outputString(resultElem).trim());
        }
    }

    private void generateCompletingReport1(String query, Document rawDecompositionData, Element queryResultElement) {
        if(logger.isInfoEnabled()) {
View Full Code Here

            if (query.equals(getPreJoiningMIQuery())) {
                logger.info("\tquery = [" + query + "] is pre-joining MI query.");
            }

            XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
            String rawDataStr = out.outputString(rawDecompositionData).trim();
            logger.info("\n\trawDecomositionData = " + rawDataStr);
            String queryResultStr = out.outputString(queryResultElement).trim();
            logger.info("\n\tresult = " + queryResultStr.trim());
        }
    }
View Full Code Here

            }

            XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
            String rawDataStr = out.outputString(rawDecompositionData).trim();
            logger.info("\n\trawDecomositionData = " + rawDataStr);
            String queryResultStr = out.outputString(queryResultElement).trim();
            logger.info("\n\tresult = " + queryResultStr.trim());
        }
    }

View Full Code Here

    private void generateExitReports3() {
        if(logger.isInfoEnabled()) {
            XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
            logger.info("\tresulting net data = " +
                    out.outputString(_net.getInternalDataDocument()));
        }
    }

    private void generateExitReports2(String miJoiningQuery, Document groupedOutputData, Element result) {
        if(logger.isInfoEnabled()) {
View Full Code Here

    private void generateExitReports2(String miJoiningQuery, Document groupedOutputData, Element result) {
        if(logger.isInfoEnabled()) {
            logger.info("\tmi JoiningQuery = " + miJoiningQuery);
            XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
            logger.info("\tmi groupedOutputData = " + out.outputString(groupedOutputData));
            logger.info("\tmi result = " + out.outputString(result));
        }
    }

    private void generateExitReport1() {
View Full Code Here

    private void generateExitReports2(String miJoiningQuery, Document groupedOutputData, Element result) {
        if(logger.isInfoEnabled()) {
            logger.info("\tmi JoiningQuery = " + miJoiningQuery);
            XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
            logger.info("\tmi groupedOutputData = " + out.outputString(groupedOutputData));
            logger.info("\tmi result = " + out.outputString(result));
        }
    }

    private void generateExitReport1() {
        if(logger.isInfoEnabled()) {
View Full Code Here

                 iter.hasNext();) {
                String localVariableName = (String) iter.next();
                Element queryResult =
                        (Element) _localVariableNameToReplaceableOuptutData.get(localVariableName);
                XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());
                logger.info("\tqueryResult = " + out.outputString(queryResult));
            }
        }
    }

View Full Code Here

            QueryProcessor qp = new QueryProcessor(configuration, staticQueryContext);
            XQueryExpression xQueryExpression = qp.compileQuery(query);
            //if SAXON worked with JDOM directly we could replace the next with:
            ///DocumentInfo saxonDocInfo = qp.buildDocument(new DocumentWrapper(_parentDecomposition.getInternalDataDocument(), null));
            DocumentInfo saxonDocInfo = qp.buildDocument(new StreamSource(
                    new StringReader(outputter.outputString(document))));
            DynamicQueryContext dynamicQueryContext = new DynamicQueryContext();
            dynamicQueryContext.setContextNode(saxonDocInfo);
            resultObj = xQueryExpression.evaluateSingle(dynamicQueryContext);
            NodeInfo nodeInfo = (NodeInfo) resultObj;
            //my code to parse SAXON resulting XML tree and produce a string
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.