Exemplo n.º 1
0
        public static XmlModifier WithConfig(long modifier)
        {
            var instance = new XmlModifier();

            instance.Modifier = modifier;
            return(instance);
        }
Exemplo n.º 2
0
        private static void DoProcess()
        {
            Debug.Assert(Modifier != null, nameof(Modifier) + " != null");

            var doc = new XmlDocument();

            doc.Load(Path);
            XmlNode root = doc.DocumentElement;

            XmlTransversal.Transverse(root, XmlModifier.WithConfig((long)Modifier).Filter);
            doc.Save(Path);
        }