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