Hi, I am trying to output the Document object using a log4j output debug statement as follows:
// Create xml response document Document responseDoc = loadResource(); // log4j debug output statement logger.debug(responseDoc.asXML()); But the xml output is not nicely formatted. Is there anyway I can return a nicely formatted xml string from a dom4j Document object? I have already looked at the example provided in the FAQ page for "How can I pretty print my XML document?" http://www.dom4j.org/faq.html#pretty-print But that only shows how to write the Document, nicely formatted, to a writter. What I need is to return the Document, nicely formatted, as a String. Thanks. ********************************************************** * Saladin Sharif * e-mail: [EMAIL PROTECTED] * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs ********************************************************** ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ dom4j-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dom4j-user
