Set a serialization property
In the case of XSLT, properties set within the serializer override
any properties set in xsl:output
declarations in the stylesheet.
Similarly, with XQuery, they override any properties set in the Query
prolog using declare option saxon:output
.
Serializer qout = new Serializer(); qout.SetOutputProperty(Serializer.METHOD, "xml"); qout.SetOutputProperty(Serializer.INDENT, "yes"); qout.SetOutputProperty(Serializer.SAXON_INDENT_SPACES, "1");