static void SetupStream(IO.XmlElementStream s, FA mode, XML.BXmlSerializerInterface xs)
 {
     s.IgnoreCaseOnEnums        = true;
     s.ExceptionOnEnumParseFail = true;
     s.StreamMode = mode;
     s.InitializeAtRootElement();
     s.SetSerializerInterface(xs);
 }