JAXB, JAXB_FORMATTED_OUTPUT property, levels of indentation
834151Feb 21 2012 — edited Feb 22 2012Is it possible to provide greater control over formatted output, especially indentation, than appears to be possible with the JAXB_FORMATTED_OUTPUT property?
Currently, when I reach the 10th level of indentation, the formatted output shifts back to the left margin and restarts indentation. For a large data file, this can be disconcerting, and is definitely not what is desired.
I cannot find any way of turning off this behavior. I found, on the web, references to a property called "com.sun.xml.bind.indentString", but when I try to set this to, for example, two spaces rather than four, it throws a PropertyException, and the Marshaller documentation does not list this as a supported property.
Can anyone tell me if I can turn off this behavior, or change the number of levels of indentation before the left-shift-back-to-margin is triggered?
Thanks.
¦{Þ