public static void SerializeUpdate(KSoft.IO.XmlElementStream s, BXmlSerializerInterface xsi,
                                           IBListAutoIdXmlSerializer xs, bool forceNoRootElementStreaming = false)
        {
            Contract.Requires(s != null);
            Contract.Requires(xsi != null);
            Contract.Requires(xs != null);
            Contract.Requires(!xs.IsDisposed);

            if (forceNoRootElementStreaming)
            {
                xs.Params.SetForceNoRootElementStreaming(true);
            }
            xs.StreamXmlUpdate(s, xsi);
            if (forceNoRootElementStreaming)
            {
                xs.Params.SetForceNoRootElementStreaming(false);
            }
        }