private static void SerializeAndCompare(object o)
        {
            XPathNavigator nav1 = NavigatorUtils.Serialize(o);

            ObjectXPathContext context = new ObjectXPathContext();

            context.NamespaceManager.AddNamespace("sdf", Namespaces.SDF);
            XPathNavigator nav2 = context.CreateNavigator(o);

            NavigatorUtils.PrintNavigator(nav2);
            nav2.MoveToRoot();

            NavigatorUtils.AreEqual(nav2, nav1);
        }
        private static void DeserializeAndCompare(object o)
        {
            ObjectXPathContext context = new ObjectXPathContext();

            context.NamespaceManager.AddNamespace("sdf", Namespaces.SDF);

            XPathNavigator nav = context.CreateNavigator(o);

            nav.MoveToRoot();

            NavigatorUtils.PrintNavigator(nav);

            nav.MoveToRoot();
            //			object o2 = Deserialize( o.GetType(), nav );
            object o2 = NavigatorUtils.Deserialize(o.GetType(), NavigatorUtils.Serialize(o));

            XPathNavigator nav2 = context.CreateNavigator(o2);

            nav2.MoveToRoot();
            nav.MoveToRoot();

            NavigatorUtils.AreEqual(nav, nav2);
        }