consolidate mv.Xml() and mv.XmlIndent() code