MCPcopy Create free account
hub / github.com/Fedict/dcattools / getSerializer

Method getSerializer

tools/src/main/java/be/gov/data/tools/EDP.java:1044–1053  ·  view source on GitHub ↗

Return indenting XML serializer @return Saxon serializer

()

Source from the content-addressed store, hash-verified

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)

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected