Return indenting XML serializer @return Saxon serializer
()
| 1042 | * @return Saxon serializer |
| 1043 | */ |
| 1044 | private static Serializer getSerializer() { |
| 1045 | Configuration config = new Configuration(); |
| 1046 | Processor processor = new Processor(config); |
| 1047 | Serializer s = processor.newSerializer(); |
| 1048 | s.setOutputProperty(Property.METHOD, "xml"); |
| 1049 | s.setOutputProperty(Property.ENCODING, "utf-8"); |
| 1050 | s.setOutputProperty(Property.INDENT, "yes"); |
| 1051 | s.setOutputProperty(Property.ESCAPE_URI_ATTRIBUTES, "yes"); |
| 1052 | return s; |
| 1053 | } |
| 1054 | |
| 1055 | /** |
| 1056 | * Check circular references (object same as subject) |