|
Re: pretty printing page output: msg#00116java.enhydra.xmlc
At 11:15 PM 9/17/2003 -0700, you wrote: The DOMFormatter does not suffer from this problem so I'm using it for now. Only thing is that I've made use of OutputOptions and I still see no change in the source output. As a stopgap measure, try doing this... //write the doc to a byte stream byte[] bytes = dfm.toBytes(node); //filter the byte stream to tidy Tidy tidy = new Tidy(); tidy.setIndentContent(true); tidy.setSpaces(2); tidy.setQuiet(true); ByteArrayInputStream bais = new ByteArrayInputStream(bytes); ByteArrayOutputStream baos = new ByteArrayOutputStream(); tidy.parse(bais, baos); //now write the file writer.write(baos.toString()); Jake
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: pretty printing page output, Jacob Kjome |
|---|---|
| Next by Date: | Re: Convert String to XML safe String, merg |
| Previous by Thread: | Re: pretty printing page output, Jacob Kjome |
| Next by Thread: | [Ann] Jivan 1.0 RC 1, Arno Schatz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |