public void WriteData(AmfWriter writer, object obj) { writer.WriteMarker(Amf0TypeMarkers.Xml); writer.WriteAmf0XDocument(obj as XDocument); }