added method for outputting a completed xform instance.