Provides support for writing DOM trees out either as indented human readable XML or in a more compact format suitable for A2A data transfer.