Re: Tidy.pprint() doesn't work!

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am having the same problem. Any help would be much appreciated. My
code example is below:

ByteArrayOutputStream out = new ByteArrayOutputStream();
					
Tidy tidyParser = new Tidy();
tidyParser.setIndentAttributes(true);
tidyParser.setIndentContent(true);
tidyParser.setOnlyErrors(false);
tidyParser.setQuiet(false);
tidyParser.setShowWarnings(true);
tidyParser.setSmartIndent(true);
tidyParser.setWraplen(1024);
tidyParser.setXmlOut(true);
tidyParser.pprint(personDirsDOM, out);
								
System.out.println("Size of outputStream: " + out.size());
System.out.println("Contents of outputStream: \n" + out.toString());
String tidyPersonDirsStr = out.toString();
out.flush();
out.close();
System.out.println("Attempting to write out the Tidy version of
personDirsDOM from string");
targetDirectory.getFile("PersonDirs-tidyStr.xml").saveContents(tidyPer
sonDirsStr);

personDirsDOM is a DOM document, of course.

Michael S. Hobbs
Unicon, Inc.
Office	480.558.2432
Mobile	602.820.4551
Fax	480.558.2320

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2

iQA/AwUBPviE+qQWkPDGmrGJEQI+BgCgsiuoTFCa5AX8P0eUakuqbGf+eiAAnjNo
xQuU2Mfg/XcxLXjiHLRMvTup
=K20M
-----END PGP SIGNATURE-----


====
This message and any attachments are confidential. Unauthorized use
or disclosure of this message is strictly prohibited, and this message
must be destroyed immediately if received by an unauthorized recipient.
====

Received on Tuesday, 24 June 2003 13:23:40 UTC